‘sudo dpkg --configure -a’ 给出错误消息

‘sudo dpkg --configure -a’ 给出错误消息
dpkg: error processing package linux-signed-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.16.0-52-generic
 linux-image-generic-lts-utopic
 linux-generic-lts-utopic
 linux-image-3.13.0-66-generic
 linux-image-3.16.0-031600-generic
 linux-image-extra-3.16.0-52-generic
 linux-signed-image-3.13.0-66-generic
 linux-image-generic
 linux-image-extra-3.13.0-66-generic
 linux-generic
 linux-signed-image-generic
 linux-signed-generic

答案1

我认为您需要使用以下命令删除所有未配置的软件包,但请注意不要删除您正在使用的当前内核版本。您可以使用 uname -r 命令来找出答案。

 sudo dpkg --purge linux-image-3.16.0-52-generic
 sudo dpkg --purge linux-image-generic-lts-utopic
 sudo dpkg --purge linux-generic-lts-utopic
 sudo dpkg --purge linux-image-3.13.0-66-generic
 sudo dpkg --purge linux-image-3.16.0-031600-generic
 sudo dpkg --purge linux-image-extra-3.16.0-52-generic
 sudo dpkg --purge linux-signed-image-3.13.0-66-generic
 sudo dpkg --purge linux-image-generic
 sudo dpkg --purge linux-image-extra-3.13.0-66-generic
 sudo dpkg --purge linux-generic
 sudo dpkg --purge linux-signed-image-generic
 sudo dpkg --purge linux-signed-generic

然后修复软件包依赖关系,

sudo apt-get update
sudo apt-get -f install

此后,您可以返回到之前的操作,并且命令sudo dpkg --configure -a不会出现任何错误。

相关内容