我正试图在我的电脑上安装这些步骤桌面的完整版本。直到步骤1.4,一切都很好,确切地说,
sudo apt-get install ros-kinetic-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-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed
Depends: ros-kinetic-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我将在这里报告整个依赖树,其中对每个list元素左侧的所有依赖项使用命令sudo apt-get install。我首先遵循模拟器的依赖关系:
然后,我遵循桌面依赖关系:
正如您所看到的,两者都指向同一个包。但当使用时
sudo apt-get install python-pyqt5我得到了
python 5已经是最新版本(5.8.2+dfsg-1+16.04+xenial+build21 21)。
pip3 install pyqt5安装python 5ros-kinetic-ros-base,这使我没有依赖关系错误。sudo apt-get install python-pyqt5=5.8.2+dfsg-1+16.04+xenial+build19提供以下输出:读取包列表.创建依赖树读取状态信息..。启动pkgProblemResolver并计数中断:1启动python-pyqt5.qtsvg < 5.8.2+dfsg-1+16.04+xenial+build21 21>( python )断裂python -pyqt5.qtsvg:a 64取决于python 5<5.8.2+dfsg-1+16.04+异种+build21 21 -> 5.8.2+dfsg-1+16.04+build21 19 5.8.2+dfsg-1+16.04+build21 21>( to )(to=5.8.2+dfsg-1+16.04+build21)(考虑python5.8.2+dfsg-1+16.04+build21 19->5.8.2+dfsg-1+16.04+异种+build21>(To)=5.8.2+dfsg-1+16.04+build21):-pyqt5.qtsvg:amd64而不是改变python-pyqt5:a 64调查(0) ros-动态python绑定<0.3.3-0异种-20171104-175930-0800>( misc )断开的ros-动态python- qt-qt-绑定:a 64取决于python-pyqt5.qtsvg <5.8.2+dfsg-1+16.04+异种+build21 21>(python-pyqt5.qtsvg:a 64 1作为对ros-动能-python绑定的解决方案:a 64-python绑定:A64而不是改变python-python绑定:Pyqt5.qtsvg:a 64调查(0) ros-动力学-rviz<1.12.15-0 0xenial 20180105-172609-0800>( misc )断ros-动力学-rviz:a 64取决于ros-动python-qt-绑定<0.3.3-0异种-20171104-175930-0800>( misc ),考虑ros-动-python-qt-绑定:a 64-0作为对ros动力学-rviz的解决方案:a 64 -1删除ros-动力学-rviz:a 64而不是更改ros-动态python-qt-绑定:a 64已完成的包建议包。:python-pyqt5-dbg以下软件包将被删除:Pythonpyqt5.qtsvgros-binding以下软件包将被降级:Python-pyqt5.0升级,0新安装,1降级,3删除,0没有升级。需要获得2.143 kB的档案我安装了KDE neon 5.8,其规格如下:
在这里,我将列出我认为可能有用的每个命令,然后是它的输出:
$ cat /etc/apt/sources.list.d/ros-latest.list
deb http://packages.ros.org/ros/ubuntu xenial main
$ uname -a
Linux Ublion16 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ apt-cache policy python-pyqt5
python-pyqt5:
Installed: 5.8.2+dfsg-1+16.04+xenial+build21
Candidate: 5.8.2+dfsg-1+16.04+xenial+build21
Version table:
*** 5.8.2+dfsg-1+16.04+xenial+build21 500
500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
100 /var/lib/dpkg/status
5.8.2+dfsg-1+16.04+xenial+build19 500
500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
5.8.2+dfsg-1+16.04+xenial+build13 500
500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
5.7+dfsg-3+16.04+build8 500
500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
5.5.1+dfsg-3ubuntu4 500
500 http://it.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 Packages发布于 2018-02-01 07:51:51
我刚遇到了一个与你的问题非常相似的问题,但我通过添加
deb http://cz.archive.ubuntu.com/ubuntu xenial main universe 到/etc/apt/sources.list.列表的头。请注意这句话中的“异类”字,它应该与您的Ubuntu版本相同。如果它对您不起作用,我将建议您先删除/etc/apt/ remove .list.d/ros-latest.list,然后再试一次。
发布于 2018-03-09 17:08:18
将以下包源添加到/etc/apt/source.列表中。
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse现在,按照本链接中1.2中的步骤执行以下步骤
https://askubuntu.com/questions/996153
复制相似问题