Friday, March 25, 2011

Installing sun-java6-jre on Ubuntu 10.10

 

Today I was trying to install Sun Java JRE.

 

to install sun-java6-jre on Ubuntu 10.04 LTS, type the commands below in Terminal:

Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
Code:
sudo apt-get update
Code:
sudo apt-get install sun-java6-jre

 

Credit http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-10-10-maverick-using-ppa.html

 

When I ran the first command above I received the following error:

sudo: add-apt-repository: command not found

 

I ended up having to run this command and everything was made better

sudo apt-get install python-software-properties