ubuntu下无论安装什么包都报这个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-kinetic-laser-filters is already the newest version (1.8.5-0xenial-20181117-020108-0800).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libtiff5-dev : Depends: libtiffxx5 (= 4.0.6-1ubuntu0.6) but 4.0.6-1ubuntu0.5 is to be installed
libtiffxx5 : Breaks: libtiffxx5:i386 (!= 4.0.6-1ubuntu0.5) but 4.0.6-1ubuntu0.6 is to be installed
libtiffxx5:i386 : Breaks: libtiffxx5 (!= 4.0.6-1ubuntu0.6) but 4.0.6-1ubuntu0.5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
和这个
Setting up bluez (4.101-0ubuntu13.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
start: Job failed to start
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluez-alsa:i386:
bluez-alsa:i386 depends on bluez; however:
Package bluez is not configured yet.
dpkg: error processing package bluez-alsa:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
bluez
bluez-alsa:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
导致所有依赖和包都无法安装.找了好久才找到解决方案首先感谢博主:解决方案原地址为:http://blog.youkuaiyun.com/heray1990/article/details/47803541
解决方案为:按顺序执行一下命令即可
$ sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
$ sudo mkdir /var/lib/dpkg/info/
$ sudo apt-get update
$ sudo apt-get -f install
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
$ sudo rm -rf /var/lib/dpkg/info
$ sudo mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/
$sudo apt-get update
$sudo apt-get upgrade
到此解决问题,感谢原博主.
转自:
http://blog.youkuaiyun.com/heray1990/article/details/47803541