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.
来源
德布http://ports.ubuntu.com/ubuntu-ports/精确的主宇宙 deb-srchttp://ports.ubuntu.com/ubuntu-ports/精确的主宇宙
答案1
最终通过反复尝试找到了解决方案。/etc/apt/sources.list
替换precise
为trusty
,一切正常。现在可以安装该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 universe