我明白了
dpkg: error: parsing file '/var/lib/dpkg/status' near line 14 package 'python-pkg-resources':
file details field `Size' not allowed in status file
E: Sub-process /usr/bin/dpkg returned an error code (2)
当我尝试安装时libev4
。我运行
sudo apt-get install libev4
请指教
答案1
您的dpkg
状态文件似乎已损坏。但是,由于 Ubuntu 会自动备份此文件,因此您可以将其恢复为已知的良好副本:
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bak
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
sudo apt-get update
如果一切顺利,您就可以删除/var/lib/dpkg/status.bak
。