Unable to locate package oracle-java7-installer [Ubuntu 13] Was installing Java today, this is an easy install thanks to “ ppa:webupd8team/java “, but when I tried it was not working, but has worked for me all this while. Little goggling around found me a solution. Here is full conversation if you wanted to have a look http://ubuntuforums.org/showthread.php?t=2048793 Installing JAVA on Ubuntu is simple. Do the below to add the repository and run the below command ‘sudo apt-get install oracle-java7-installer’ to install. Error. ahmed@ubuntu:~$ sudo add-apt-repository ppa:webupd8team/java ahmed@ubuntu:~$ sudo apt-get update ahmed@ubuntu:~$ sudo apt-get install oracle-java7-installer ahmed@ubuntu:~$ sudo apt-get install oracle-java7-installer Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package oracle-java7-installer Solution. Elevating to root . ahmed@ubuntu:~$ sudo su Adding to deb ....