码迷,mamicode.com
首页 > 其他好文 > 详细

dpkg: error processing package bluez (--configure) 解决方法【转】

时间:2017-06-24 22:48:10      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:ati   return   util   dir   so文件   als   ...   property   tty   

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

现在终于把系统从Window换到Ubuntu,还是蛮高兴的,结果还没有高兴一上午就出问题了。

原因是出再Flash插件上,我打开Firefox时候,它一直推荐我装,我就默认安装了。结果坏了大事情,可能是因为公司网速,下带一半就卡住,我就取消了,结果这个时候,我的dpkg就锁住了。后来,征求我们这边一位仁兄的意见,采用dpkg重置命令。

(注意:系统推荐是 sudo dpkg configure -a)

我就输入 sudo dpkg-reconfigure -phigh -a

静静等待一段时间,系统包依赖关系都整理,一切恢复到之前的状态,包管理器有可以用了。

 

另外我说一下 FLASH插件安装

1,去ADOBE官网去下包,这里推荐下Linux tar.gz的包。

2,解压,会出现一个文件夹和一个so文件,这个so文件才是我们要的。

3,将so文件移动到 /usr/lib/mozilla/plugins/ 下面就可以了,现在你的Flash就装好了。

dpkg: error processing package bluez (--configure) 解决方法【转】

标签:ati   return   util   dir   so文件   als   ...   property   tty   

原文地址:http://www.cnblogs.com/sky-heaven/p/7074547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!