Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openjdk-7-jdk : Depends: openjdk-7-jre (>= 7~u3-2.1.1~pre1-1ubuntu2) but it is not going to be installed
Recommends: libxt-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.资料来源
deb http://ports.ubuntu.com/ubuntu-ports/精密主宇宙deb src http://ports.ubuntu.com/ubuntu-ports/精密主宇宙
发布于 2014-07-23 07:49:29
最后通过命中和试用找到了解决方案。在/etc/apt/sources.list中,用trusty代替了precise,一切都正常。现在可以安装openjdk-7-jdk包了。
在改变它之后,/etc/apt/sources.list看起来像这样。
deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main universehttps://askubuntu.com/questions/501443
复制相似问题