Oracle-Java8-Installer: No installation candidate












21














I'm trying to install Oracle Java 8 on my Ubuntu Server (16.04 LTS, fully updated, x64). I followed this (very simple) guide: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html



After running apt-get update, I get the standard list of sites having been hit for the update, but I get the following error (which I imagine is the source of the issue):



Err:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
404 not found


All of the other URLs work, just not the amd64 endpoint.



Then, when running apt-get install oracle-java8-installer, I get the following error:



 Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'oracle-java8-installer' has no installation candidate


Is that endpoint just not available anymore? Is there another source for Oracle Java 8? I see the "webupd8" group mentioned on pretty much every guide, besides using dpkg to install the package manually (but then do I get updates from Oracle?)










share|improve this question



























    21














    I'm trying to install Oracle Java 8 on my Ubuntu Server (16.04 LTS, fully updated, x64). I followed this (very simple) guide: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html



    After running apt-get update, I get the standard list of sites having been hit for the update, but I get the following error (which I imagine is the source of the issue):



    Err:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
    404 not found


    All of the other URLs work, just not the amd64 endpoint.



    Then, when running apt-get install oracle-java8-installer, I get the following error:



     Package oracle-java8-installer is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or is only available from another source
    E: Package 'oracle-java8-installer' has no installation candidate


    Is that endpoint just not available anymore? Is there another source for Oracle Java 8? I see the "webupd8" group mentioned on pretty much every guide, besides using dpkg to install the package manually (but then do I get updates from Oracle?)










    share|improve this question

























      21












      21








      21


      8





      I'm trying to install Oracle Java 8 on my Ubuntu Server (16.04 LTS, fully updated, x64). I followed this (very simple) guide: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html



      After running apt-get update, I get the standard list of sites having been hit for the update, but I get the following error (which I imagine is the source of the issue):



      Err:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
      404 not found


      All of the other URLs work, just not the amd64 endpoint.



      Then, when running apt-get install oracle-java8-installer, I get the following error:



       Package oracle-java8-installer is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or is only available from another source
      E: Package 'oracle-java8-installer' has no installation candidate


      Is that endpoint just not available anymore? Is there another source for Oracle Java 8? I see the "webupd8" group mentioned on pretty much every guide, besides using dpkg to install the package manually (but then do I get updates from Oracle?)










      share|improve this question













      I'm trying to install Oracle Java 8 on my Ubuntu Server (16.04 LTS, fully updated, x64). I followed this (very simple) guide: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html



      After running apt-get update, I get the standard list of sites having been hit for the update, but I get the following error (which I imagine is the source of the issue):



      Err:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
      404 not found


      All of the other URLs work, just not the amd64 endpoint.



      Then, when running apt-get install oracle-java8-installer, I get the following error:



       Package oracle-java8-installer is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or is only available from another source
      E: Package 'oracle-java8-installer' has no installation candidate


      Is that endpoint just not available anymore? Is there another source for Oracle Java 8? I see the "webupd8" group mentioned on pretty much every guide, besides using dpkg to install the package manually (but then do I get updates from Oracle?)







      apt java oracle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 23 '16 at 16:40









      JakeJake

      208127




      208127






















          2 Answers
          2






          active

          oldest

          votes


















          23














          The mistake is that you used instructions on how to install java on Debian. Not Ubuntu.




          1. As root, go to this folder: /etc/apt/sources.list.d

          2. Locate this file: webupd8team-java.list and delete it.

          3. Execute sudo apt-get update for the system to remove any reference to that update server.

          4. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa to your system.

          5. Execute sudo apt-get update again and you should be able to install everything correctly.


          I would recommend you installed oracle-java8-set-default too in order to make this java package the default java on your system.






          share|improve this answer























          • Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
            – Jake
            Jun 23 '16 at 17:06










          • Didn't work for me
            – Hack-R
            Sep 21 '16 at 17:04










          • These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
            – killjoy
            Jun 19 '18 at 19:25



















          7














          Run the following commands:



          sudo apt-get install python-software-properties
          sudo add-apt-repository ppa:webupd8team/java
          sudo apt-get update


          Then , to install a specific jdk run these:



          jdk6:



          sudo apt-get install oracle-java6-installer


          jdk7:



          sudo apt-get install oracle-java7-installer


          jdk8:



          sudo apt-get install oracle-java8-installer





          share|improve this answer























          • great, works for me
            – ycomp
            Jul 11 '17 at 11:00










          • Another way of doing it is by installing through synaptic. An upvote for me @ycomp
            – bademba
            Jul 11 '17 at 13:55






          • 3




            this no longer works - there's now 404s for the binaries
            – Peter Ajtai
            Oct 17 '17 at 20:19










          • could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
            – oivoodoo
            Oct 18 '17 at 7:34










          protected by Community Jan 4 at 15:23



          Thank you for your interest in this question.
          Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



          Would you like to answer one of these unanswered questions instead?














          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          23














          The mistake is that you used instructions on how to install java on Debian. Not Ubuntu.




          1. As root, go to this folder: /etc/apt/sources.list.d

          2. Locate this file: webupd8team-java.list and delete it.

          3. Execute sudo apt-get update for the system to remove any reference to that update server.

          4. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa to your system.

          5. Execute sudo apt-get update again and you should be able to install everything correctly.


          I would recommend you installed oracle-java8-set-default too in order to make this java package the default java on your system.






          share|improve this answer























          • Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
            – Jake
            Jun 23 '16 at 17:06










          • Didn't work for me
            – Hack-R
            Sep 21 '16 at 17:04










          • These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
            – killjoy
            Jun 19 '18 at 19:25
















          23














          The mistake is that you used instructions on how to install java on Debian. Not Ubuntu.




          1. As root, go to this folder: /etc/apt/sources.list.d

          2. Locate this file: webupd8team-java.list and delete it.

          3. Execute sudo apt-get update for the system to remove any reference to that update server.

          4. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa to your system.

          5. Execute sudo apt-get update again and you should be able to install everything correctly.


          I would recommend you installed oracle-java8-set-default too in order to make this java package the default java on your system.






          share|improve this answer























          • Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
            – Jake
            Jun 23 '16 at 17:06










          • Didn't work for me
            – Hack-R
            Sep 21 '16 at 17:04










          • These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
            – killjoy
            Jun 19 '18 at 19:25














          23












          23








          23






          The mistake is that you used instructions on how to install java on Debian. Not Ubuntu.




          1. As root, go to this folder: /etc/apt/sources.list.d

          2. Locate this file: webupd8team-java.list and delete it.

          3. Execute sudo apt-get update for the system to remove any reference to that update server.

          4. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa to your system.

          5. Execute sudo apt-get update again and you should be able to install everything correctly.


          I would recommend you installed oracle-java8-set-default too in order to make this java package the default java on your system.






          share|improve this answer














          The mistake is that you used instructions on how to install java on Debian. Not Ubuntu.




          1. As root, go to this folder: /etc/apt/sources.list.d

          2. Locate this file: webupd8team-java.list and delete it.

          3. Execute sudo apt-get update for the system to remove any reference to that update server.

          4. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa to your system.

          5. Execute sudo apt-get update again and you should be able to install everything correctly.


          I would recommend you installed oracle-java8-set-default too in order to make this java package the default java on your system.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 23 '16 at 17:16

























          answered Jun 23 '16 at 16:55









          StormlordStormlord

          3,7892927




          3,7892927












          • Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
            – Jake
            Jun 23 '16 at 17:06










          • Didn't work for me
            – Hack-R
            Sep 21 '16 at 17:04










          • These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
            – killjoy
            Jun 19 '18 at 19:25


















          • Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
            – Jake
            Jun 23 '16 at 17:06










          • Didn't work for me
            – Hack-R
            Sep 21 '16 at 17:04










          • These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
            – killjoy
            Jun 19 '18 at 19:25
















          Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
          – Jake
          Jun 23 '16 at 17:06




          Damn, such a simple mistake. Can't believe I clicked on the wrong link. Thank you very much for the quick and correct answer!
          – Jake
          Jun 23 '16 at 17:06












          Didn't work for me
          – Hack-R
          Sep 21 '16 at 17:04




          Didn't work for me
          – Hack-R
          Sep 21 '16 at 17:04












          These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
          – killjoy
          Jun 19 '18 at 19:25




          These HAVE to be the most warped, and stupidest ways to install the jdk (no offense to the responders, but totally to the developers of Ubuntu and java)
          – killjoy
          Jun 19 '18 at 19:25













          7














          Run the following commands:



          sudo apt-get install python-software-properties
          sudo add-apt-repository ppa:webupd8team/java
          sudo apt-get update


          Then , to install a specific jdk run these:



          jdk6:



          sudo apt-get install oracle-java6-installer


          jdk7:



          sudo apt-get install oracle-java7-installer


          jdk8:



          sudo apt-get install oracle-java8-installer





          share|improve this answer























          • great, works for me
            – ycomp
            Jul 11 '17 at 11:00










          • Another way of doing it is by installing through synaptic. An upvote for me @ycomp
            – bademba
            Jul 11 '17 at 13:55






          • 3




            this no longer works - there's now 404s for the binaries
            – Peter Ajtai
            Oct 17 '17 at 20:19










          • could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
            – oivoodoo
            Oct 18 '17 at 7:34
















          7














          Run the following commands:



          sudo apt-get install python-software-properties
          sudo add-apt-repository ppa:webupd8team/java
          sudo apt-get update


          Then , to install a specific jdk run these:



          jdk6:



          sudo apt-get install oracle-java6-installer


          jdk7:



          sudo apt-get install oracle-java7-installer


          jdk8:



          sudo apt-get install oracle-java8-installer





          share|improve this answer























          • great, works for me
            – ycomp
            Jul 11 '17 at 11:00










          • Another way of doing it is by installing through synaptic. An upvote for me @ycomp
            – bademba
            Jul 11 '17 at 13:55






          • 3




            this no longer works - there's now 404s for the binaries
            – Peter Ajtai
            Oct 17 '17 at 20:19










          • could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
            – oivoodoo
            Oct 18 '17 at 7:34














          7












          7








          7






          Run the following commands:



          sudo apt-get install python-software-properties
          sudo add-apt-repository ppa:webupd8team/java
          sudo apt-get update


          Then , to install a specific jdk run these:



          jdk6:



          sudo apt-get install oracle-java6-installer


          jdk7:



          sudo apt-get install oracle-java7-installer


          jdk8:



          sudo apt-get install oracle-java8-installer





          share|improve this answer














          Run the following commands:



          sudo apt-get install python-software-properties
          sudo add-apt-repository ppa:webupd8team/java
          sudo apt-get update


          Then , to install a specific jdk run these:



          jdk6:



          sudo apt-get install oracle-java6-installer


          jdk7:



          sudo apt-get install oracle-java7-installer


          jdk8:



          sudo apt-get install oracle-java8-installer






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 28 '16 at 14:04

























          answered Nov 28 '16 at 13:43









          badembabademba

          14117




          14117












          • great, works for me
            – ycomp
            Jul 11 '17 at 11:00










          • Another way of doing it is by installing through synaptic. An upvote for me @ycomp
            – bademba
            Jul 11 '17 at 13:55






          • 3




            this no longer works - there's now 404s for the binaries
            – Peter Ajtai
            Oct 17 '17 at 20:19










          • could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
            – oivoodoo
            Oct 18 '17 at 7:34


















          • great, works for me
            – ycomp
            Jul 11 '17 at 11:00










          • Another way of doing it is by installing through synaptic. An upvote for me @ycomp
            – bademba
            Jul 11 '17 at 13:55






          • 3




            this no longer works - there's now 404s for the binaries
            – Peter Ajtai
            Oct 17 '17 at 20:19










          • could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
            – oivoodoo
            Oct 18 '17 at 7:34
















          great, works for me
          – ycomp
          Jul 11 '17 at 11:00




          great, works for me
          – ycomp
          Jul 11 '17 at 11:00












          Another way of doing it is by installing through synaptic. An upvote for me @ycomp
          – bademba
          Jul 11 '17 at 13:55




          Another way of doing it is by installing through synaptic. An upvote for me @ycomp
          – bademba
          Jul 11 '17 at 13:55




          3




          3




          this no longer works - there's now 404s for the binaries
          – Peter Ajtai
          Oct 17 '17 at 20:19




          this no longer works - there's now 404s for the binaries
          – Peter Ajtai
          Oct 17 '17 at 20:19












          could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
          – oivoodoo
          Oct 18 '17 at 7:34




          could someone suggest the best way to handle this situation when on installation of java8 it produced 404 on downloading binaries?
          – oivoodoo
          Oct 18 '17 at 7:34





          protected by Community Jan 4 at 15:23



          Thank you for your interest in this question.
          Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



          Would you like to answer one of these unanswered questions instead?