ubuntu apt-get install 错误汇总
问题1:E: dpkg 被中断,您必须手工运行 ‘dpkg --configure -a’ 解决此问题。
解决方法:
sudo rm /var/lib/dpkg/updates/*
sudo apt-get update
问题2:dpkg: error processing package XXX (--configure) 解决方法
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)
解决方法:
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/