Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

and 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?

share|improve this question
    
I'm sorry, but I have no clue what exactly you want.. Can you clarify? What do you want apt to do? –  Seth May 17 at 2:44
    
you alraedy modified from raring to trusty . That makes apt-get to fetch the newer version from PPA. –  Avinash Raj May 19 at 6:58
    
yes. i got it working using trial and error. My question is how do I make apt-get get the latest Java installer without making that change manually. –  thlim May 19 at 7:26
2  
sudo apt-get install oracle-java8-installer And stop using Ubuntyu 13.04, it's no longer supported! –  Alin Andrei May 19 at 9:40
    
Obviously will fail since you are using 13.04. 13.04 is no longer supported for new packages, bug fixes, etc. You need to upgrade your system to obtain the latest fixes. –  Braiam May 19 at 12:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.