Installing Java 6 on Ubuntu 10.04 fails on missing Java 6 JRE package
Posted
by
David S
on Super User
See other posts from Super User
or by David S
Published on 2011-11-17T23:17:41Z
Indexed on
2011/11/19
17:58 UTC
Read the original article
Hit count: 250
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
I get:
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?
© Super User or respective owner