消息’E:dpkg被中断,您必须手动运行’sudo dpkg –configure -a’才能解决问题。
每当我尝试获取更新时,我都会在最后一行收到错误:
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
这个对我有用! 出现此错误时,我正尝试安装无线驱动程序。 不得不删除文件和锁定文件。
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock cd /var/lib/dpkg/updates sudo rm * sudo apt-get update
然后你可以运行你的apt-get install
到你想要安装的任何软件包