Unable to install JDK 8. I get an error [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite













This question already has an answer here:



  • Can't install Oracle Java 8 in Ubuntu 16.04

    3 answers



  • Cannot install JDK 9 via apt

    2 answers



I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java and sudo apt-get update. After that I ran sudo apt-get install oracle-java8-installer and got an error. Here's the error:



Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.

download failed

Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer (I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer again. It did not work.










share|improve this question













marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
    – Sina Madani
    Apr 18 at 10:12














up vote
0
down vote

favorite













This question already has an answer here:



  • Can't install Oracle Java 8 in Ubuntu 16.04

    3 answers



  • Cannot install JDK 9 via apt

    2 answers



I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java and sudo apt-get update. After that I ran sudo apt-get install oracle-java8-installer and got an error. Here's the error:



Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.

download failed

Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer (I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer again. It did not work.










share|improve this question













marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
    – Sina Madani
    Apr 18 at 10:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:



  • Can't install Oracle Java 8 in Ubuntu 16.04

    3 answers



  • Cannot install JDK 9 via apt

    2 answers



I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java and sudo apt-get update. After that I ran sudo apt-get install oracle-java8-installer and got an error. Here's the error:



Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.

download failed

Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer (I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer again. It did not work.










share|improve this question














This question already has an answer here:



  • Can't install Oracle Java 8 in Ubuntu 16.04

    3 answers



  • Cannot install JDK 9 via apt

    2 answers



I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java and sudo apt-get update. After that I ran sudo apt-get install oracle-java8-installer and got an error. Here's the error:



Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.

download failed

Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer (I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer again. It did not work.





This question already has an answer here:



  • Can't install Oracle Java 8 in Ubuntu 16.04

    3 answers



  • Cannot install JDK 9 via apt

    2 answers







apt java jdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 17 at 20:30









jaryl

32




32




marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
    – Sina Madani
    Apr 18 at 10:12
















  • Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
    – Sina Madani
    Apr 18 at 10:12















Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
– Sina Madani
Apr 18 at 10:12




Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
– Sina Madani
Apr 18 at 10:12










2 Answers
2






active

oldest

votes

















up vote
0
down vote













A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.






share|improve this answer




















  • Is there another way to install java 8?
    – jaryl
    Apr 17 at 23:12










  • I see the PPA was updated so you can repeat the steps and it should work now.
    – Logix
    Apr 18 at 19:06

















up vote
0
down vote













Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer again. Now Java 8 is installed.






share|improve this answer



























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.






    share|improve this answer




















    • Is there another way to install java 8?
      – jaryl
      Apr 17 at 23:12










    • I see the PPA was updated so you can repeat the steps and it should work now.
      – Logix
      Apr 18 at 19:06














    up vote
    0
    down vote













    A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.






    share|improve this answer




















    • Is there another way to install java 8?
      – jaryl
      Apr 17 at 23:12










    • I see the PPA was updated so you can repeat the steps and it should work now.
      – Logix
      Apr 18 at 19:06












    up vote
    0
    down vote










    up vote
    0
    down vote









    A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.






    share|improve this answer












    A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 17 at 21:02









    Logix

    5067




    5067











    • Is there another way to install java 8?
      – jaryl
      Apr 17 at 23:12










    • I see the PPA was updated so you can repeat the steps and it should work now.
      – Logix
      Apr 18 at 19:06
















    • Is there another way to install java 8?
      – jaryl
      Apr 17 at 23:12










    • I see the PPA was updated so you can repeat the steps and it should work now.
      – Logix
      Apr 18 at 19:06















    Is there another way to install java 8?
    – jaryl
    Apr 17 at 23:12




    Is there another way to install java 8?
    – jaryl
    Apr 17 at 23:12












    I see the PPA was updated so you can repeat the steps and it should work now.
    – Logix
    Apr 18 at 19:06




    I see the PPA was updated so you can repeat the steps and it should work now.
    – Logix
    Apr 18 at 19:06












    up vote
    0
    down vote













    Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer again. Now Java 8 is installed.






    share|improve this answer
























      up vote
      0
      down vote













      Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer again. Now Java 8 is installed.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer again. Now Java 8 is installed.






        share|improve this answer












        Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer again. Now Java 8 is installed.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 18 at 18:59









        jaryl

        32




        32












            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491