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:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre
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