ros卸载重装问题ros-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed

环境 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/

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值