E:无法在 Ubuntu 16.04 上找到软件包 ros-kinetic-desktop-full

E: Unable to locate package ros-kinetic-desktop-full on Ubuntu 16.04

我知道已经有几个类似的问题,但是 none 它的解决方案对我有用。因此,在大量的网络搜索和尝试不同的东西之后,我干脆决定自己打开一个 Stack Overflow 问题。

基本上,我让 ROS Kinetic 在我的 Ubuntu 16.04 机器上工作,当我试图构建我的 catkin 工作区时,它突然开始给我一些错误。在尝试了几种方法之后,我决定使用 sudo apt-get remove ros-* 卸载 ROS,然后根据教程 http://wiki.ros.org/kinetic/Installation/Ubuntu 重新安装。

下面我留下了安装命令的完整执行:

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 有未满足的依赖项。如果我尝试安装这些依赖项,它们也有未满足的依赖项。

如果有人能帮助我,我将不胜感激。谢谢!

对于所有遇到同样问题的人,我无法解决它,最终在我的计算机上重新安装 Ubuntu。在此之后,一切正常。

我的建议是立即重新安装 Ubuntu,如果我立即这样做,我会浪费更少的时间。