Unable to install sun-java6-jdk on Lucid Lynx (10.04) release

Asked by Eugene Parkhomenko on 2012-02-28

I've tried to install sun-java6-jdk accordingly to this instruction http://source.android.com/source/initializing.html but I've got next error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk 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-jdk has no installation candidate

Here is result of sudo apt-get update command:
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ua.archive.ubuntu.com lucid Release.gpg
Ign http://ppa.launchpad.net/glasen/intel-driver/ubuntu/ lucid/main Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ lucid/partner Translation-en_US
Hit http://archive.canonical.com lucid Release.gpg
Get:1 http://dl.google.com stable Release.gpg [198B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://ua.archive.ubuntu.com lucid-updates Release.gpg
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://ua.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://ua.archive.ubuntu.com lucid Release
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_US
Hit http://archive.canonical.com lucid Release
Hit http://ppa.launchpad.net lucid Release
Get:2 http://dl.google.com stable Release [1,349B]
Hit http://ua.archive.ubuntu.com lucid-updates Release
Hit http://archive.canonical.com lucid Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Get:3 http://dl.google.com stable/main Packages [1,246B]
Hit http://ua.archive.ubuntu.com lucid/main Packages
Hit http://ua.archive.ubuntu.com lucid/restricted Packages
Hit http://ua.archive.ubuntu.com lucid/main Sources
Hit http://ua.archive.ubuntu.com lucid/restricted Sources
Hit http://ua.archive.ubuntu.com lucid/universe Packages
Hit http://archive.canonical.com lucid/partner Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://ua.archive.ubuntu.com lucid/universe Sources
Hit http://ua.archive.ubuntu.com lucid/multiverse Packages
Hit http://ua.archive.ubuntu.com lucid/multiverse Sources
Hit http://ua.archive.ubuntu.com lucid-updates/main Packages
Hit http://ua.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://ua.archive.ubuntu.com lucid-updates/main Sources
Hit http://ua.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://ua.archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.canonical.com lucid/partner Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://ua.archive.ubuntu.com lucid-updates/universe Sources
Hit http://ua.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://ua.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 2,793B in 0s (5,443B/s)
Reading package lists... Done

uname -a:
Linux HRK1-DHP-F30485 2.6.38-13-generic #54~lucid1-Ubuntu SMP Wed Jan 4 13:00:37 UTC 2012 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Last query:
2012-02-28
Last reply:
2012-02-28

It's not packaged any more. Oracle changed the license. This script however will install it for you:

wget http://dl.dropbox.com/u/8850924/install64bitJava; chmod +x ./install64bitJava; sudo ./install64bitJava

Will give you oracle java 1.7 and will install for Chromium and Firefox (added that because people still use junky Firefox so it makes life easier)

Can you help with this problem?

Provide an answer of your own, or ask Eugene Parkhomenko for more information if necessary.

To post a message you must log in.