pkg: error processing package XXX (--configure) 解决方法 (ubuntu右上角红色警告)

本文详细介绍了在Ubuntu系统中遇到的蓝牙组件升级失败问题及解决方案。通过一系列命令操作,包括移动和删除配置文件,重新安装依赖包,最终解决了在使用sudo apt-get upgrade时出现的dbus和bluetooth服务启动失败的问题。
摘要由CSDN通过智能技术生成

转自:http://blog.csdn.net/heray1990/article/details/47803541

在 Ubuntu 执行 sudo apt-get upgrade 时,出现了如下的报错:


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)

通过执行下面的命令可以解决该问题:


$ 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

Reading package lists... Done

Building dependency tree

Reading state information... Done

  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

7 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Setting up bluez (4.101-0ubuntu13.1) ...

Setting up blueman (1.23-git201403102151-1ubuntu1) ...

Setting up bluetooth (4.101-0ubuntu13.1) ...

Setting up bluez-alsa:amd64 (4.101-0ubuntu13.1) ...

Setting up bluez-alsa:i386 (4.101-0ubuntu13.1) ...

Setting up bluez-gstreamer (4.101-0ubuntu13.1) ...

Setting up bluez-utils (4.101-0ubuntu13.1) ...

$ 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 就不会有问题了。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值