我收到需要安装更新的通知,我单击了“是”,但从那时起,由于未满足的依赖关系,我在右上角看到了这个停止标志。当我运行时:
sudo apt-get install -f
我得到了一堆需要删除的包然后:
The following extra packages will be installed:
collada-dom2.4-sp-dev
The following NEW packages will be installed:
collada-dom2.4-sp-dev
当我单击“是”时:
Selecting previously unselected package collada-dom2.4-sp-dev.
(Reading database ... 306874 files and directories currently installed.)
Preparing to unpack .../collada-dom2.4-sp-dev_2.4.4.1-ubuntu1~trusty1_amd64.deb ...
Unpacking collada-dom2.4-sp-dev (2.4.4.1-ubuntu1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/collada-dom2.4-sp-dev_2.4.4.1-ubuntu1~trusty1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/cmake/collada_dom-2.4/collada_dom-config.cmake', which is also in package collada-dom2.4-dp-dev 2.4.4.0-ubuntu1~trusty1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/collada-dom2.4-sp-dev_2.4.4.1-ubuntu1~trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我跑步时sudo apt-get autoremove
我得到:
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
collada-dom-dev : Depends: collada-dom2.4-sp-dev but it is not installed
E: Unmet dependencies. Try using -f.
任何帮助都将不胜感激,谢谢。
答案1
以下对我有用:
sudo dpkg --purge --force-all collada-dom2.4-sp-dev
然后尝试
sudo apt-get install -f
我在 ROS 论坛上找到了这个解决方案collada-dom2.4-sp-dev 导致 dist-upgrade 在 ubuntu 14.04 上失败请查看那里以了解更多信息。