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
Download JDK 5
Create directory for JDK:
Extract archive in a new folder:
Now run:
Correct the file ownership and the permissions of the executables:
Check if it successful: