0%

【解决】pkg was interrupted, you must manually run 'sudo dpkg --configure.错误

关于使用apt-get install 时报“E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem.”错误的解决方案
按照一下步骤依次完成即可解决上述问题:

(1) 切换到如下目录

1
cd /var/lib/dpkg/updates

(2)查看该目录下的文件

1
ls

(3)删除该目录下的所有文件

1
rm -rf *

(4)先升级upgrade

1
sudo apt-get upgrade

(5)最后再更新update

1
sudo apt-get update