Can't install openjdk-7-jdk on Ubuntu 14

I am currently using ubuntu 14 as my OS. I want to install openjdk-7-jdk on Ubuntu, but I have an error when I typed sudo apt-get install openjdk-7-jdk

. Here is the error message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
  google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
  openjdk-7-jdk : Depends: openjdk-7-jre (= 7u79-2.5.6-0ubuntu1.14.04.1) but it is not going to be installed
                  Recommends: libxt-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

      

I tried sudo apt-get -f install openjdk-7-jdk

but didn't work.

Please help me. Thank.

+3


source to share


1 answer


you have some broken packages, so before installing openjdk. execute command

sudo apt-get -f install

it will install all corrupted dependency and then run the command



sudo apt-get install openjdk-7-jdk

it will work

+3


source







All Articles