我想安装 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
我应该如何解决这个问题?
试试
sudo apt-get install tzdata=2014j-0wheezy1
sudo apt-get install openjdk-7-jdk