我正在ubuntu 12.04上安装sun-java6-jre,但是出现以下错误,

The following packages have unmet dependencies:
 sun-java6-jdk : Depends: sun-java6-bin (= 6-06-0ubuntu1) but it is not going to be installed
 sun-java6-jre : Depends: sun-java6-bin (>= 6.30-2~precise1) but it is not going to be installed or
                      ia32-sun-java6-bin (>= 6.30-2~precise1) but it is not going to be installed
                 Recommends: gsfonts-x11 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

请帮忙!

最佳答案

Sun Java不再以这种方式可用于Ubuntu。

将要

sudo apt-get install openjdk-6-jdk

足以满足您的需求?

关于java - 安装sun-java6-jre报错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11416915/

10-12 07:37