在 Ubuntu 上安裝 openjdk 的依賴問題

在 Ubuntu 上安裝 openjdk 的依賴問題

我嘗試安裝 openjdk-7-jre:

sudo apt-get install openjdk-7-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-7-jre : Depends: openjdk-7-jre-headless (= 7u7-2.3.2a-0ubuntu0.12.04.1) but it is not going to be installed
                 Depends: libgif4 (>= 4.1.4) but it is not installable
                 Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not installable
                 Recommends: libgnome2-0 but it is not installable
                 Recommends: libgnomevfs2-0 but it is not going to be installed
                 Recommends: ttf-dejavu-extra but it is not installable
E: Unable to correct problems, you have held broken packages.

這是 Ubuntu 的版本:

Ubuntu 12.04.1 LTS

我完全不知道如何解決依賴關係...
有人可以幫助我嗎?
謝謝你在前面。

答案1

好的,所以我只是嘗試安裝依賴項樹中的每個依賴項,最基本的是:

tzdata-java_2012e-0ubuntu0.12.04_all.deb

我從以下位置下載的:

https://launchpad.net/ubuntu/+source/tzdata/2012e-0ubuntu0.12.04/+build/3726497/+files/tzdata-java_2012e-0ubuntu0.12.04_all.deb

並輸入:

sudo dpkg -i tzdata-java_2012e-0ubuntu0.12.04_all.deb

再次之後:

sudo apt-get install openjdk-6-jre

現在它正在安裝過程中。

相關內容