Recently, I’ve upgraded to use Ubuntu 10.04. It seems that by default, I can’t just use “sudo apt-get install sun-java6-bin” to download the java package. After doing Google for the solution, I’ve come across a working solution. I need to add apt repository first, before I can download the java package:

sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update

NOTE: Be mindful of the double-quotes in case you are doing a copy-paste from the webpage.

  2 Responses to “Cannot install Sun JDK on Ubuntu 10.04”

  1. Is there a reason why you would wanna install sun-java6-bin over openjdk-6-jdk?

    openjdk-6-jdk is available in official Ubuntu repo.

  2. thanks… I didn’t know about that before :-)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2012 Programming & technology Suffusion theme by Sayontan Sinha