I've tried to add Canonial Partner repository, but still can't find sun-java6-jdk package. Does anybody know the right way to install Oracle Sun JDK instead of OpenJDK on Ubuntu 10.10 "Maverick meerkat"?
You might have to use the version in the Lucid partner repository. I did this in Lucid (I used the version from Karmic multiverse, before I realized it had been moved to the partner repo), and it worked fine. Not sure where it went in Maverick though.
Update (2010/10/01): Yesss, Sun Java Finally Uploaded To The Ubuntu 10.10 Maverick Official Partner Repository.
Update (2010/09/27): Readers might want to check Sun Java6 Packages [updated]. I still expect official packages to be available in the partner repos at releast time though.
For an unknown reason, the sun-java6-jdk are not yet available in the partner repositories.
So either downloaded the required packages from http://archive.canonical.com/pool/partner/s/sun-java6/ and install them with dpkg -i
.
Or temporarily replace the maverick partner repository
http://archive.canonical.com/ubuntu maverick partner
by the lucid one (replace maverick
by lucid
in the above line, let me know if you need more help to do this). Then, install sun-java6. And revert the change.
Currently sun java6 packages are working fine now for ubuntu 10.10 and 10.04 users. Works fine for me.
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6