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

转自: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就装好了。

时间: 2024-08-02 08:31:37

dpkg: error processing package bluez (--configure) 解决方法【转】的相关文章

如何解决linux下dpkg: error processing install-info

 代码如下: 正在设置 install-info (5.2.0.dfsg.1-2) ... /etc/environment: line 2: CLASS_PATH: command not found dpkg: error processing package install-info (--configure): 子进程 已安装 post-installation 脚本 返回了错误号 127 E: Sub-process /usr/bin/dpkg returned an error co

nsis error是什么?及解决方法

nsis error是什么?及解决方法 ▲ 出错的文本: The installer you are trying to use is corrupted or incomplete. This could be the result of a damaged disk, a failed downlOAd or a virus. You may want to contact the author of this installer to obtain a new copy. IT may b

ThinkPHP提示错误Fatal error: Allowed memory size的解决方法_php实例

本文实例讲述了ThinkPHP提示错误Fatal error: Allowed memory size的解决方法.分享给大家供大家参考.具体分析如下: 如果你的ThinkPHP提示你:致命错误(Fatal error: Allowed memory size),根据网上说的提高服务器可使用内存,我觉得都不是好的解决办法.麻烦也没必要.因为这是ThinkPHP本身存在BUG. 错误提示:Fatal error: Allowed memory size of 1073741824 bytes exh

访问网站提示An error occurred on the server when processing the URL的解决方法_win服务器

大家看到这个信息不要怕,这个就说明了你的iis7或iis7.5的下的网站有错误.只要找到具体的信息就可以了,跟iis6下的经典提示错误一样的. 解决方法:An error occurred on the server when processing the URL. Please contact the system administrator 在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误: An error occurred on the serv

node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法

  在使用npm install安装扩展插件时,系统提示"npm install Error: ENOENT, stat 'C:Users<用户名>AppDataRoamingnpm'". 以前都是很顺利的安装过程,没出现这种情况.我这里的解决办法是直接创建上面提示的目录就好了,应该是node.js权限不够,在此备注. 有时候就是这样,很可能一个很久都无法解决的问题,实际解决方法很简单,就是这么任性!

error launching installer错误的解决方法

  小编的电脑系统是win7的,当遇到win7系统安装逐鹿工具箱时,提示"error launching installer"错误怎么办?看看小编给大家分享的解决方法吧! 来看看解决方法吧: 1.上述问题是因为界面语言和非Unicode程序语言不一致导致的 2.点击开始菜单,选择控制面板项打开,如下图: 3.在控制面板页选择"区域和语言"点击打开,如下图: 4.在区域和语言界面,点击管理,查看非Unicode程序语言是否为中文,如果不是,请点击更改系统区域设置,如下

node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法_node.js

在使用npm install安装扩展插件时,系统提示"npm install Error: ENOENT, stat 'C:Users<用户名>AppDataRoamingnpm'". 以前都是很顺利的安装过程,没出现这种情况.我这里的解决办法是直接创建上面提示的目录就好了,应该是node.js权限不够,在此备注. 有时候就是这样,很可能一个很久都无法解决的问题,实际解决方法很简单,就是这么任性!!

连接mysql数据库Error No 1130的错误解决方法

使用mysql的客户端连接到mysql的服务端时,出现如下错误: Error No. 1130 Host '192.168.0.14' is not allowed to connect to this MySQL server 解决方法: 1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,

登录mysql报ERROR 1045 (28000): Access denied 解决方法

登录mysql时系统报错原因 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 原因一 可能是密码真的输入错误 原因二 安装时有问题,比如可能data目录没有等 解决方法: 1 没有data目录用命令建立 mysqld --initialize-insecure --user=mysql   2 NET stop mysql57 3 mysqld --defaults-file=