我无法在 Ubuntu 14.04 机器上安装任何东西。当我尝试安装时,出现以下错误:
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package openjdk-7-jre-headless:amd64 (--configure):
cannot compute MD5 hash for file '/etc/java-7-openjdk/logging.properties': failed to read (Input/output error)
dpkg: dependency problems prevent configuration of default-jre-headless:
default-jre-headless depends on openjdk-7-jre-headless (>= 7~u3-2.1.1); however:
Package openjdk-7-jre-headless:amd64 is not configured yet.
dpkg: error processing package default-jre-headless (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openjdk-7-jre-headless:amd64
default-jre-headless
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试以下任何一个命令时,都会出现类似的错误:
sudo apt-get upgrade
sudo apt-get install python-sqlalchemy
sudo apt-get install vlc browser-plugin-vlc
有什么想法知道为什么以及/或如何解决吗?
答案1
用以下两行修复!
sudo apt-get purge openjdk-7-jre-headless
sudo apt-get install openjdk-7-jre-headless
不完全明白为什么...但是没关系!
编辑-这破坏了一些其他软件包,与我只安装无头版本有关。
已修复此问题:
sudo apt-get install openjdk-7-jre