在 Ubuntu 14.04 上安装 JDK 时出现软件包损坏问题

在 Ubuntu 14.04 上安装 JDK 时出现软件包损坏问题

我在 Ubuntu 14.04 上尝试安装 JDK 时遇到问题。以下是我所看到的情况:

araj1@araj:~$ sudo apt-get install openjdk-6-jre
Reading package lists... Done  
Building dependency tree       
Reading state information... Done
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-6-jre : Depends: openjdk-6-jre-headless (>= 6b31-1.13.3-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.  

我确实尝试使用 synaptic 来解决这个问题,但当我尝试安装包时,它显示包损坏的错误并且无法安装。有人可以帮忙吗?

相关内容