I have Ubuntu 12.04 x64 and I'm trying to install sun jdk for opennms.
sudo apt-get install sun-java6-jdk
when i run above given command i get following msg:
root@fido:~# sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-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
E: Package 'sun-java6-jdk' has no installation candidate
I have these lines in my /etc/apt/source.list.
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
Its true, the sun-java6-jdk has gone, due to licensing issues its not available from apt.
See:
https://help.ubuntu.com/community/Java
Describes work arounds.
I had to execute following commands and it worked for me.
as per below article partner archive isn't available anymore: