我知道已经有几个与此类似的问题,但是没有一个解决方案对我有用。因此,经过大量的网络搜索并尝试了其他方法之后,我只是决定自己打开一个Stack Overflow问题。
基本上,我在我的Ubuntu 16.04计算机上使用了ROS Kinetic,当我尝试构建我的柳絮工作区时,它突然开始给我一些错误。在尝试了几样东西之后,我决定根据http://wiki.ros.org/kinetic/Installation/Ubuntu教程,用sudo apt-get remove ros-*
卸载ROS并重新安装。
我将完整执行安装命令留在下面:
tomas@tomas-TOSHIBA:~ $ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
tomas@tomas-TOSHIBA:~ $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/tmp.plh6QKA5mU/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-key
C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: requesting key AB17C654 from hkp server keyserver.ubuntu.com
gpg: key AB17C654: "Open Robotics <info@osrfoundation.org>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
tomas@tomas-TOSHIBA:~ $ sudo apt-get update
Hit:1 http://pt.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://pt.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://pt.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:4 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease
Hit:6 https://brave-browser-apt-release.s3.brave.com stable InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease
Fetched 325 kB in 6s (50.3 kB/s)
Reading package lists... Done
tomas@tomas-TOSHIBA:~ $ sudo apt-get install ros-kinetic-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-kinetic-desktop-full
我已经尝试使用curl和它们在教程中建议的不同链接来设置我的键,但是最终结果是相同的。如果我尝试sudo apt-get install ros-desktop-full
,我会得到:
tomas@tomas-TOSHIBA:~ $ sudo apt-get install ros-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-desktop-full : Depends: ros-desktop 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.
运行sudo aptitude install ros-desktop-full
也不起作用。如果执行sudo apt-get install ros-desktop
,则表明ros-desktop
具有未满足的依赖性。如果我尝试安装这些依赖项,它们也将具有未满足的依赖项。
如果有人能帮助我,我将非常感谢。谢谢!
答案 0 :(得分:0)
对于所有遇到相同问题的人,我无法解决,最终在计算机上重新安装了Ubuntu。之后,一切正常。
我的建议是立即重新安装Ubuntu,如果立即完成安装,我会浪费更少的时间。