Installing sun-java6-jdk with apt-get on Ubuntu 10.04
- by Adam S
I have followed the instructions on numerous pages, such as this, which say to run the following commands:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
However, when I do this I still get the following error:
me@mycomputer:~$ 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 realize Java is available from many other sources, but for reasons that I can't get into here I must use this specific version.
What can I do to get this installed?