每当我尝试获取更新时,都会在最后一行收到错误:
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'
现在该怎么办?我能摆脱错误吗?
我试过这个关联。
答案1
/var/lib/dpkg/updates
您引用了错误的链接。在终端上尝试以下命令来删除目录中的所有文件,
cd /var/lib/dpkg/updates
sudo rm *
然后运行以下命令来获取更新的版本,
sudo apt-get update
答案2
它对我有用!我试图安装无线驱动程序时出现了这个错误。不得不删除文件和锁定文件。
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
你想要安装的任何包