I am trying to install Java 7 in Ubuntu 13.04 using this tutorial.
Preparing your system
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here
sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update
Install Oracle Java 7 in Ubuntu 13.04/12.10/12.04
Open the terminal and run the following commands
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
All goes well until I reach the point:
sudo apt-get install oracle-java7-installer
Then I just get the error message
E: Unable to locate package oracle-java7-installer
What is the problem that is causing this?