我对 Ubuntu 还比较陌生,正在尝试安装 ROS Jade 来开展一个项目。我运行的是 Ubuntu 14.04 LTS,并一直按照官方网站。我的存储库配置如下 这里。
我按照 1.4 的步骤操作,没有任何问题。但是,当我尝试运行时:
sudo apt-get install ros-jade-desktop-full
我在结果底部收到以下错误:
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-jade-desktop-full : Depends: ros-jade-desktop but it is not going to be installed
Depends: ros-jade-perception but it is not going to be installed
Depends: ros-jade-simulators but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
现在这是一个相当常见的问题,正如我在网上搜索时发现的那样。但是,我找到的解决方案都不起作用。我确实注意到我链接的教程建议可以使用以下方法修复依赖关系问题:
sudo apt-get install libgl1-mesa-dev-lts-utopic
然而,这会导致:
E: Unable to locate package libgl1-mesa-dev-lts-utopic
现在,从现在开始,你必须原谅我,因为我对这些东西非常不熟悉,真的不知道我在做什么。我显然对为什么什么都不起作用感到困惑,并尝试了几个发布的解决方案。没有一个奏效。然后我在某个时候读到 ROS 依赖于一个叫做 Gazebo 的东西。之后的进一步研究表明,情况可能不再如此,但当时我尝试安装 Gazebo,希望它能起作用。我去了 Gazebo 的官方教程并输入了我的终端:
curl -ssL http://get.gazebosim.org | sh
再次得到了类似的结果:
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:
libgazebo7-dev : Depends: libxml2-dev but it is not going to be installed
Depends: libqt4-dev but it is not going to be installed
Depends: libqtwebkit-dev but it is not going to be installed
Depends: libboost-all-dev but it is not going to be installed
Depends: freeglut3-dev but it is not going to be installed
Depends: libogre-1.8-dev but it is not going to be installed
Depends: libcurl4-openssl-dev but it is not going to be installed
Depends: libgts-dev but it is not going to be installed
Depends: libgdal-dev
Depends: robot-player-dev but it is not going to be installed
Depends: libsdformat4-dev but it is not going to be installed
Depends: libsimbody-dev (>= 3.0.0) but it is not going to be installed
Depends: libsimbody-dev (< 4.0.0) but it is not going to be installed
Depends: libbullet2.82-dev but it is not going to be installed
Depends: libgazebo7 (= 7.0.0-1~trusty) but it is not going to be installed
Depends: gazebo7-plugin-base (= 7.0.0-1~trusty)
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
现在,也许我下载 Gazebo 真的是错的。但回想起来,我似乎在尝试安装的任何东西上都遇到了错误。这让我怀疑我的 Ubuntu 本身是否有问题。或者也许我在这个过程中搞砸了一些简单的事情?提前感谢您提供的任何帮助。我不认为这是一个重复的问题,因为我找不到任何可以解决我所处理的所有三个错误的东西,但如果有像这样的已回答问题,我深表歉意。