当前位置:   article > 正文

dpkg: error processing package XXX (--configure) 解决方法 (ubuntu右上角红色警告)_ubantu 出现dpkg: error processing package linux-firm

ubantu 出现dpkg: error processing package linux-firmware (--configure)

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

dpkg: error processing package bluez (--configure):
dpkg: dependency problems prevent configuration of bluez-alsa:i386:                       
 ...等等一系列的错误

because ... have many errors
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
通过执行下面的命令可以解决该问题:
$ 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/
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
输入上述命令之后,在执行 sudo apt-get update 和 sudo apt-get upgrade 就不会有问题了。

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/88733
推荐阅读
相关标签
  

闽ICP备14008679号