“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命令不應給您任何錯誤。

相關內容