ros卸载重装问题ros-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed
程序员文章站
2022-06-25 20:45:41
...
环境 Ubuntu16.04 ros kinetic
0.写在前面
之所以卸载ros,是因为安装open3d过程中与ros冲突了.选择先卸载ros在重新安装的方式(曲线救国?)
1.问题
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-perception 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.
2.解决方式
先
sudo apt install aptitude
再进行ros安装.
sudo aptitude install ros-kinetic-desktop-full
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libgdk-pixbuf2.0-dev [Not Installed]
2) libgtk2.0-dev [Not Installed]
3) ros-kinetic-desktop-full [Not Installed]
4) ros-kinetic-image-pipeline [Not Installed]
5) ros-kinetic-image-view [Not Installed]
6) ros-kinetic-perception [Not Installed]
7) ros-kinetic-simulators [Not Installed]
8) ros-kinetic-stage [Not Installed]
9) ros-kinetic-stage-ros [Not Installed]
Accept this solution? [Y/n/q/?]
选择n
The following actions will resolve these dependencies:
Downgrade the following packages:
1) gir1.2-gdkpixbuf-2.0 [2.32.2-1ubuntu1.6 (now) -> 2.32.2-1ubuntu1 (xenial)]
2) gir1.2-gtk-2.0 [2.24.30-1ubuntu1.16.04.2 (now) -> 2.24.30-1ubuntu1 (xenial)]
3) libgail-common [2.24.30-1ubuntu1.16.04.2 (now) -> 2.24.30-1ubuntu1 (xenial)]
4) libgail18 [2.24.30-1ubuntu1.16.04.2 (now) -> 2.24.30-1ubuntu1 (xenial)]
5) libgdk-pixbuf2.0-0 [2.32.2-1ubuntu1.6 (now) -> 2.32.2-1ubuntu1 (xenial)]
6) libgdk-pixbuf2.0-common [2.32.2-1ubuntu1.6 (now) -> 2.32.2-1ubuntu1 (xenial)]
7) libgtk2.0-0 [2.24.30-1ubuntu1.16.04.2 (now) -> 2.24.30-1ubuntu1 (xenial)]
8) libgtk2.0-bin [2.24.30-1ubuntu1.16.04.2 (now) -> 2.24.30-1ubuntu1 (xenial)]
Accept this solution? [Y/n/q/?]
选择y
参考
https://answers.ros.org/question/284570/unable-to-install-ros-kinetic-on-ubuntu-1604/