ROS安装E:无法纠正问题,您已经破坏了包

时间:2018-02-06 03:22:10

标签: ubuntu-16.04 ros

我正在尝试安装ROS Indigo。我做了以下步骤:

$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list'

$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

$ sudo apt-get update

$ sudo apt-get install ros-kinetic-desktop-full

当我执行最后一行时,我收到了以下错误:

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-indigo-desktop-full : Depends: ros-indigo-desktop but it is not going to be installed
                           Depends: ros-indigo-perception but it is not going to be installed
                           Depends: ros-indigo-simulators but it is not going to be installed
                           Depends: ros-indigo-urdf-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经尝试了this建议的解决方案,但它没有用。

2 个答案:

答案 0 :(得分:0)

你无法在Ubuntu 16.04上安装ROS Indigo正式使用apt-get,因为它与Ubuntu 14.04兼容(我认为Ubuntu 14.10)

但是有安装的解决方法但不推荐

Ubuntu 16.04官方发布是Kinetic,这是最新的LTS版本

答案 1 :(得分:0)

尝试使用该错误进行处理:

sudo get upgrade