Ubuntu无论安装什么包或者依赖都报这个错误:You might want to run 'apt-get -f install' to correct these:

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.csdn.net/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.csdn.net/heray1990/article/details/47803541

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值