我无法在 ubuntu 12.10(32 位)中安装 openJDK 7

我无法在 ubuntu 12.10(32 位)中安装 openJDK 7

我尝试使用 Ubuntu 软件中心安装 OpenJDK 7,但收到以下通知。

**Package dependencies cannot be resolved**

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.


Details:

The following packages have unmet dependencies:

openjdk-7-jre: Depends: openjdk-7-jre-headless (= 7u55-2.4.7-1ubuntu1~0.12.10.1) but 7u55-2.4.7-1ubuntu1~0.12.10.1 is to be installed
               Depends: libjpeg8 (>= 8c) but 8c-2ubuntu7 is to be installed
               Depends: libpulse0 (>= 1:0.99.1) but 1:2.1-0ubuntu4 is to be installed
               Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed

这是什么问题?我该如何克服它来安装 JDK?我只想在我的计算机上运行 eclipse。哪个 JDK 和 IDE 更适合 ubuntu 12.10??仅供参考,我是 Linux 新手。

提前致谢。

答案1

Ubuntu 12.10 已达到使用寿命结束。最好升级到 14.04 或 14.10。

尝试以下命令

sudo apt-get -f install

sudo dpkg --configure -a

否则,使用此 PPA 安装 Oracle Java

sudo 添加 apt-repository ppa:webupd8team/java

sudo apt-get 更新

sudo apt-get 安装 oracle-java7-installer

相关内容