problema com a instalação do java

0

Quando eu digito o seguinte comando

ramesh@ramesh-H61M-S2P-B3:~$ sudo apt-get install openjdk-6-jdk

recebendo erro como,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
apt

E: Package 'openjdk-6-jdk' has no installation candidate

Como resolver isso?

    
por rams 07.08.2014 / 13:54

2 respostas

0

$ sudo apt-get install openjdk-6-*

tente isso no terminal

Talvez o openjdk6 possa ter sido eliminado dos repositórios do ubuntu tente isso

$ sudo apt-get install openjdk-7-jdk
    
por Tejas Ghalsasi 07.08.2014 / 14:19
0

Experimente sudo apt-get update e, em seguida, sudo apt-get install openjdk-6-jdk

    
por amarnath 07.08.2014 / 14:39