I am getting this error when trying to install java 1.5 JDK
sudo apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java5-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:i386 apt
E: Package 'sun-java5-jdk' has no installation candidate
sudo apt-get install openjdk-7-jdk
. – user68186 Sep 10 '14 at 19:52