我尝试安装 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
现在正在安装过程中。