I've followed a variety of instructions about modifying my sources.list trying to install Sun's JRE for Java 6 with no luck. The defining error I'm getting appears to be package sun-java6-jdk is virtual
.
How do I install sun-java6-jre on Ubuntu 10.04?
The java6 package was moved from the multiverse to the partner repository for Ubuntu 10.04 (and perhaps going forward, for Ubunto 10.10)
Add the repository to your sources.list:
Update the source list
And install java
The above three steps can also be performed in the gui:
Other Software
tab+ Add...
deb http://archive.canonical.com/ lucid partner
+Add Source
to accept the new repositoryClose
to update the source listAlternately, if you want to develop in java, you would install the sun-java6-jdk package.
If you have multiple versions of java installed, you may need to change the default version with the
sudo update-alternatives --config java
command, selecting the one withj2re1.6-sun
in it.