I'm trying to install Java 6 on Ubuntu 10.04 and it's been harder than it should be. In another question about installing Java on Ubuntu/Linux it said that I needed to do the following:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
However, that failed and I kept getting:
sudo: add-apt-repository: command not found
The solution to this, was to run:
sudo apt-get install python-software-properties
So, that seemed to work and the command above to "add-apt-repository" seems to complete with no errors. And I have run the following to confirm it got added.
sudo vi /etc/apt/sources.list
But, now when I run the following:
sudo apt-get install sun-java6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-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 sun-java6-jre has no installation candidate
Where do I go from here?