每当我尝试获取更新时,我都会在最后一行得到错误:
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 去安装到任何你想安装的软件包