Jun 02

I just had trouble to install the Sun Java6 JDK after updating to Ubuntu 10.04. The problem was that the system couldn’t find the package sun-java6-sdk and apt-get gave me the message:

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

What I did to solve this problem was to add a new source

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

After that a normal

sudo apt-get update
sudo apt-get install sun-java6-jdk

it worked for me.

34 Responses to “Install sun-java6-jdk on Ubuntu 10.04 (Lucid)”

  1. John says:

    Thanks it works for me!!!

  2. [...] Install sun-java6-jdk on Ubuntu 10.04 (Lucid) [...]

  3. [...] Install sun-java6-jdk on Ubuntu 10.04 (Lucid) [...]

  4. J says:

    Excellent. Exactly what I was trying to find on the Internet for the past 3 hours!

  5. ubundom says:

    Tada! Thanks … I hit a prob upgrading ubuntu 9.10 to 10.04 and it/I lost sight of sun-java6-jdk in the repositories.

  6. siliconray says:

    Excellent for me to ;-)

  7. CPP says:

    Genius! It worked perfectly, thanks!

  8. detlevp says:

    Excellent! Many thanks. This is the right way. Perfect.

  9. Crow Magnumb says:

    Oddly enough, that didn’t work for me straight out as in it didn’t go immediately to installing the source zip file. But when I went back to the graphical package manager I now had a …

    sun-java6-source

    …which wasn’t there before and which upon installing put src.zip into the root of my jvm directory (/usr/lib/jvm/java-6-sun-1.6.0.20).

    Which I then could attach to Eclipse and had to restart Eclipse to get it to recognize it. But it worked!

    Thanks so much!

  10. Widyantoro says:

    Successfully install after read your blog!! Thanks!!

  11. Nur Ahammad says:

    thanks it works for me.

  12. Monee says:

    Excellent job. I had been struggling all morning trying to get it installed. Your suggestion worked for me. Thanks.

  13. 낭만곰팅의 알림…

    Install sun-java6-jdk on Ubuntu 10.04 (Lucid)…

  14. B-Rain says:

    One more thanks from novice

  15. Sweet says:

    Excellent, thanx for solving this little problem for me!

  16. Inder says:

    Thanx buddy i was wandering for last 5 hours for this..

  17. Uday Reddy says:

    Thanks a lot, its installing now…………!

  18. Frisky says:

    thanks a looot… it worked for me too.. excellent job

  19. ulerkeketdotnet says:

    Another Thanks..

  20. NKR says:

    Thank you for solving my problem!

  21. [...] Ik zal vanavond maar eens (of nee morgenavond vandaag  ben ik jarig) dit gaan uitzoeken. Alvast wat linkjes bij elkaargescharreld: APEX + Cocoon = PDF (and more). Waarbij ik volgens mij het volgende moet uitvoeren op onze Ubuntu server Installing Cocoon on Ubuntu , maar dan wel eerst dit doen. [...]

  22. Anthony says:

    Thanks! Saved me banging my head against the wall for too long :-)

  23. happy camper says:

    thank you very much, this helped a lot of people

  24. andie_san says:

    Thanks! works for me as well… ;)

  25. burak dede says:

    Thanks finally find right source to install

  26. Omkar says:

    Thanks man. You were to the point.

  27. Max says:

    Thanks! This just solved all my problems :)

  28. Visus says:

    Thanks! It works like MAGIC !

  29. dkenned says:

    Yes!! I was following instructions to install Alfresco on Ubuntu server 10.04 and the jdk install failed even though I edited the sources.list file as directed. Maybe I needed to do the apt get-update because once I did your process worked. Thanks!

  30. Cristian says:

    Thank you!

  31. Al says:

    This was a lifesaver. THANK YOU!

  32. azhk says:

    thanks a lot for ur brilliant post! this works for me too ….

Leave a Reply

preload preload preload