Ubuntu – Unable to install JDK 1.6

java

When executing the following:

sudo apt-get install openjdk-6-jre

executing displays following:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-6-jre 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

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

Best Answer

What version of Ubuntu are you using?

Looks like there is no openjdk-6-jre for Ubuntu 12.10

You may see at java packages page that there is only openjdk-7-jre available.