Possible Duplicate:
How do I install Java?
I'm trying to install sun-java6-plugin
. It supposedly in the "partner" repo.
I have:
deb http://archive.canonical.com/ lucid partner
in /etc/apt/sources.list
and ran apt-get update
.
I get:
apt-get install sun-java6-plugin sun-java6-fonts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-plugin 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-plugin has no installation candidate
Does the package no longer exist, or do I need a different repo?
This is why:
"Oracle (Sun) Java 6 is no longer available to be distributed by Ubuntu, because of license issues.
It is recommended that users either migrate to OpenJDK, or download and install the newest version of Oracle (Sun) Java 6 manually, or switch to Oracle Java 7. Older versions of Oracle (Sun) Java 6 that have been distributed in the past are vulnerable to security exploits, see this announcement for more information.
If you wish, you can still install the newest and secure Oracle (Sun) Java 6 by a script (JRE only) or by a manual method. Both are easy to apply."
See here for more info and a work-around.