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.


Thanks it works for me!!!
[...] Install sun-java6-jdk on Ubuntu 10.04 (Lucid) [...]
[...] Install sun-java6-jdk on Ubuntu 10.04 (Lucid) [...]
Excellent. Exactly what I was trying to find on the Internet for the past 3 hours!
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.
Excellent for me to ;-)
Genius! It worked perfectly, thanks!
Excellent! Many thanks. This is the right way. Perfect.
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!
Successfully install after read your blog!! Thanks!!
thanks it works for me.
Excellent job. I had been struggling all morning trying to get it installed. Your suggestion worked for me. Thanks.
낭만곰팅의 알림…
Install sun-java6-jdk on Ubuntu 10.04 (Lucid)…
One more thanks from novice
Excellent, thanx for solving this little problem for me!
Thanx buddy i was wandering for last 5 hours for this..
Thanks a lot, its installing now…………!
thanks a looot… it worked for me too.. excellent job
Another Thanks..
Nice …. :)
Thank you for solving my problem!
[...] 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. [...]
Thanks! Saved me banging my head against the wall for too long :-)
thank you very much, this helped a lot of people
Thanks! works for me as well… ;)
Thanks finally find right source to install
Thanks!
Thanks man. You were to the point.
Thanks! This just solved all my problems :)
Thanks! It works like MAGIC !
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!
Thank you!
This was a lifesaver. THANK YOU!
thanks a lot for ur brilliant post! this works for me too ….