关闭

ROS安装时packages have unmet dependencies问题

标签: rosubuntu
581人阅读 评论(0) 收藏 举报
分类:

在ROS安装的过程中,当运行sudo apt-get install ros-***后,我们常常会遇到类似下面的错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
 ros-***-desktop-full : Depends: ros-***-mobile but it is not going to be installed
                          Depends: ros-***-perception but it is not going to be installed
                          Depends: ros-***-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


解决方法主要有以下两种:

1. 每次安装第一个缺失的依赖包

    如: sudo apt-get install ros-***-mobile ,运行该命令后可能会出现新的依赖包缺失问题,再次安装新的第一个缺失的依赖包。

    如此这般,直到安装好所有的依赖包,再次执行命令

    sudo apt-get install ros-***;

2. 在第一种方法解决不了的情况下使用:

    sudo aptitude install ros-*** 代替  sudo apt-get install ros-***;

    对于前面的提示Accept this solution? [Y/n/q/?],选择n

    直到出现类似这样的提示时,选择Y:

    The following actions will resolve these dependencies:
     Install the following packages:           
     1)     ps-engine [5.0.3.3-3+precise1 (precise)]
     Accept this solution? [Y/n/q/?]

   

经过以上操作,问题基本可以解决。如果还是无法安装ROS,则需要具体问题具体分析。

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:27902次
    • 积分:407
    • 等级:
    • 排名:千里之外
    • 原创:12篇
    • 转载:0篇
    • 译文:0篇
    • 评论:13条
    文章分类
    最新评论