取决于:openjdk-7-jre-headless(= 7u75-2.5.4-1~deb7u1)但它不会被安装

时间:2015-02-02 05:18:25

标签: apt

我想安装Openjdk但我收到此错误:

root@debian~# apt-get install openjdk-7-jdk
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-jdk : Depends: openjdk-7-jre (= 7u75-2.5.4-1~deb7u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我通过我的问题尝试这个命令仍未解决:

sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

sudo apt-get install tzdata=2014j-0wheezy1
sudo apt-get install openjdk-7-jdk