So.. Sun no longer has packages in the Partner Repository for Ubuntu.. I can’t really guess as to why, possibly because of all this Open Source dickery that Oracle did first with OpenSolaris, and then with OpenOffice.. but that is all speculation on my part. The fact remains however.. that some things you need may require a Sun Java JRE, and to install it you will have to use a PPA.
Using Add Apt Repository
*if you are using Ubuntu Server.. you will have to install the package “python-software-properties” which contains the “add-apt-repository” tool you will need to add the ppa the way I’m going to show you.
Step #1 Add the repo.
sudo add-apt-repository ppa:ferramroberto/java
Step #2 Update your sources.
sudo apt-get update
Step #3 Install Java
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
*if you are not using a gui.. and just need java for something like say.. tomcat.. only install the JRE.
Categorised as: Linux