This could be more of a guide than a question to anyone who upgrades Oracle Java version 7 to 8.
My server was running Ubuntu 13.04 with Java version 7. My update to Java version 8 was not successful because
apt-get could not locate oracle-java8-installer. I have followed the instructions from http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html to the dot but it didn't work for me,
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
I realized the problem was because I had version 7 installed and my
apt-get source list,
/etc/apt/sources.list.d/webupd8team-java-raring.list, was pointing to raring distribution
deb http://ppa.launchpad.net/webupd8team/java/ubuntu raring main
rather than trusty even though I upgraded . I manually changed to trusty
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
apt-get gladly installed the Java version 8 installer.
My question is, what should I do to make
apt-get modify the distribution to get the latest Java installation?