消息'E:dpkg被中断,您必须手动运行'sudo dpkg --configure -a'才能解决问题。

Modified on: Sat, 09 Jun 2018 18:44:23 +0800

每当我尝试获取更新时,我都会在最后一行收到错误:

Ign http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/universe Translation-en_IN
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

然后根据运行时出现的提示错误:

$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0009' near line 0:
 newline in field name `#padding'

现在怎么办?我可以摆脱错误吗?

我试过这个链接

最佳答案

您提到了错误的链接。在终端上尝试以下命令删除/var/lib/dpkg/updates目录中的所有文件,

cd /var/lib/dpkg/updates
sudo rm *

然后运行以下命令以获取更新的命令,

sudo apt-get update

相关问答

添加新评论