Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by jokerdino, Thomas W., Ringtail, Stephen Myall, Luis Alvarado Nov 13 '12 at 14:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Sun Java can no longer be distributed through partner, the link I posted has options if you want to use openjdk or oracle java though. –  Jorge Castro Mar 1 '12 at 21:35
    
@JorgeCastro: similar, but I wouldn't call it a dup since its a different version. There's enough differences between Ubuntu versions to make some instructions/solutions incompatible with others. –  Nick Mar 1 '12 at 21:44
    
Can you point out which part isn't working for you? We like to put all version specific things in one question instead of all over the site. –  Jorge Castro Mar 1 '12 at 21:48
    
after installing the icedtea6-plugin, it no longer complains about not having java, but the page does not load correctly. –  Nick Mar 1 '12 at 21:56
1  
ok, can you edit your question to be about that then? Make sure you mention which site you're trying to get it working on so people can test, thanks! –  Jorge Castro Mar 1 '12 at 21:57
add comment

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
I was able to install the jre successfully, so its still in the repos. It's just the browser plug-in that's been removed? I installed icedtea6-plugin but its not rendering the java-based page correctly. All the menus are missing. –  Nick Mar 1 '12 at 21:55
    
For people who need "real" Java, here's how to do it easily: duinsoft.nl/packages.php?t=en –  Nick Mar 15 '12 at 23:25
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.