我尝试通过更新管理器安装更新,然后我使用终端并得到了
dpkg: error: parsing file '/var/lib/dpkg/available' near line 0:
field name `../../../../java-7-openjdk-common/jre/lib/ext/sunjce_provider.jar' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)
所以如果有人能帮助我我会很感激谢谢
答案1
从下面的错误可以清楚的看出您的/var/lib/dpkg/available
文件已损坏。
dpkg: error: parsing file '/var/lib/dpkg/available' near line 0:
field name `../../../../java-7-openjdk-common/jre/lib/ext/sunjce_provider.jar' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)
解决上述问题的方法是使用/var/lib/dpkg/available
另一个/var/lib/dpkg/available-old
备份文件替换当前文件。
sudo rm /var/lib/dpkg/available
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
现在尝试,
sudo apt-get update
sudo apt-get install -f