Cannot install oracle-java8-jdk Because java-common cannot be installed











up vote
0
down vote

favorite












Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use.
I followed





  • Oracle-Java8-Installer: No installation candidate,


  • Problem while installing oracle-java8-installer, and

  • How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?


and with no exaggeration 7 more but non worked.



I simply want to install the 8th version of JDK and JRE.
After following a bunch of steps here is where I’m at
I added the repository and
I run this command apt-get install oracle-java8-installer and I get this message:





The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not going to be installed
Recommends: oracle-java8-set-default but it is not going to be installed


Afterwards I tried to install java-common using apt-get install java-common but I get this message:



Package java-common 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
However the following packages replace it:
java-policy

E: Package 'java-common' has no installation candidate


Its important to note that I currently have no Java packages installed (I can't use the java command) and I have added add-apt-repository ppa:webupd8team/java successfully.



This is my distribution's info:



DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


I know this has been asked a lot but I have spent the last 4 hours trying to figure it out through other questions but to no avail.










share|improve this question
























  • 16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
    – user692175
    Nov 4 '17 at 19:20










  • I just used those commands and i got 0 changes. the dist info stayed the same too :/
    – Omar Alama
    Nov 4 '17 at 19:22










  • And did it installed updates? If not you have other problems.
    – user692175
    Nov 4 '17 at 19:34










  • 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    – Omar Alama
    Nov 4 '17 at 19:45










  • Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
    – David Foerster
    Feb 17 at 17:10















up vote
0
down vote

favorite












Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use.
I followed





  • Oracle-Java8-Installer: No installation candidate,


  • Problem while installing oracle-java8-installer, and

  • How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?


and with no exaggeration 7 more but non worked.



I simply want to install the 8th version of JDK and JRE.
After following a bunch of steps here is where I’m at
I added the repository and
I run this command apt-get install oracle-java8-installer and I get this message:





The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not going to be installed
Recommends: oracle-java8-set-default but it is not going to be installed


Afterwards I tried to install java-common using apt-get install java-common but I get this message:



Package java-common 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
However the following packages replace it:
java-policy

E: Package 'java-common' has no installation candidate


Its important to note that I currently have no Java packages installed (I can't use the java command) and I have added add-apt-repository ppa:webupd8team/java successfully.



This is my distribution's info:



DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


I know this has been asked a lot but I have spent the last 4 hours trying to figure it out through other questions but to no avail.










share|improve this question
























  • 16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
    – user692175
    Nov 4 '17 at 19:20










  • I just used those commands and i got 0 changes. the dist info stayed the same too :/
    – Omar Alama
    Nov 4 '17 at 19:22










  • And did it installed updates? If not you have other problems.
    – user692175
    Nov 4 '17 at 19:34










  • 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    – Omar Alama
    Nov 4 '17 at 19:45










  • Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
    – David Foerster
    Feb 17 at 17:10













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use.
I followed





  • Oracle-Java8-Installer: No installation candidate,


  • Problem while installing oracle-java8-installer, and

  • How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?


and with no exaggeration 7 more but non worked.



I simply want to install the 8th version of JDK and JRE.
After following a bunch of steps here is where I’m at
I added the repository and
I run this command apt-get install oracle-java8-installer and I get this message:





The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not going to be installed
Recommends: oracle-java8-set-default but it is not going to be installed


Afterwards I tried to install java-common using apt-get install java-common but I get this message:



Package java-common 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
However the following packages replace it:
java-policy

E: Package 'java-common' has no installation candidate


Its important to note that I currently have no Java packages installed (I can't use the java command) and I have added add-apt-repository ppa:webupd8team/java successfully.



This is my distribution's info:



DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


I know this has been asked a lot but I have spent the last 4 hours trying to figure it out through other questions but to no avail.










share|improve this question















Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use.
I followed





  • Oracle-Java8-Installer: No installation candidate,


  • Problem while installing oracle-java8-installer, and

  • How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?


and with no exaggeration 7 more but non worked.



I simply want to install the 8th version of JDK and JRE.
After following a bunch of steps here is where I’m at
I added the repository and
I run this command apt-get install oracle-java8-installer and I get this message:





The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not going to be installed
Recommends: oracle-java8-set-default but it is not going to be installed


Afterwards I tried to install java-common using apt-get install java-common but I get this message:



Package java-common 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
However the following packages replace it:
java-policy

E: Package 'java-common' has no installation candidate


Its important to note that I currently have no Java packages installed (I can't use the java command) and I have added add-apt-repository ppa:webupd8team/java successfully.



This is my distribution's info:



DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


I know this has been asked a lot but I have spent the last 4 hours trying to figure it out through other questions but to no avail.







apt software-installation java openjdk oracle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 17:08









David Foerster

27.6k1363108




27.6k1363108










asked Nov 4 '17 at 19:17









Omar Alama

11




11












  • 16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
    – user692175
    Nov 4 '17 at 19:20










  • I just used those commands and i got 0 changes. the dist info stayed the same too :/
    – Omar Alama
    Nov 4 '17 at 19:22










  • And did it installed updates? If not you have other problems.
    – user692175
    Nov 4 '17 at 19:34










  • 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    – Omar Alama
    Nov 4 '17 at 19:45










  • Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
    – David Foerster
    Feb 17 at 17:10


















  • 16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
    – user692175
    Nov 4 '17 at 19:20










  • I just used those commands and i got 0 changes. the dist info stayed the same too :/
    – Omar Alama
    Nov 4 '17 at 19:22










  • And did it installed updates? If not you have other problems.
    – user692175
    Nov 4 '17 at 19:34










  • 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    – Omar Alama
    Nov 4 '17 at 19:45










  • Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
    – David Foerster
    Feb 17 at 17:10
















16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
– user692175
Nov 4 '17 at 19:20




16.04.**2** means you're missing lots of system updates. Please fully update your system before attempting to install new software: sudo apt update && sudo apt full-upgrade.
– user692175
Nov 4 '17 at 19:20












I just used those commands and i got 0 changes. the dist info stayed the same too :/
– Omar Alama
Nov 4 '17 at 19:22




I just used those commands and i got 0 changes. the dist info stayed the same too :/
– Omar Alama
Nov 4 '17 at 19:22












And did it installed updates? If not you have other problems.
– user692175
Nov 4 '17 at 19:34




And did it installed updates? If not you have other problems.
– user692175
Nov 4 '17 at 19:34












0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Omar Alama
Nov 4 '17 at 19:45




0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– Omar Alama
Nov 4 '17 at 19:45












Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
– David Foerster
Feb 17 at 17:10




Could you please edit your question to include the output of apt-cache policy oracle-java8-installer? Thanks.
– David Foerster
Feb 17 at 17:10










2 Answers
2






active

oldest

votes

















up vote
2
down vote













In my case I just selected all radio buttons in




Software&Updates -> Ubuntu Software -> Downloadable from the internet




and install it with



sudo apt-get install oracle-java8-installer





share|improve this answer






























    up vote
    -1
    down vote













    I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems






    share|improve this answer

















    • 1




      If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
      – David Foerster
      Feb 17 at 17:05










    • Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
      – Alexander Kitov
      Feb 18 at 18:13










    • In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
      – David Foerster
      Feb 18 at 19:09













    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f972992%2fcannot-install-oracle-java8-jdk-because-java-common-cannot-be-installed%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    In my case I just selected all radio buttons in




    Software&Updates -> Ubuntu Software -> Downloadable from the internet




    and install it with



    sudo apt-get install oracle-java8-installer





    share|improve this answer



























      up vote
      2
      down vote













      In my case I just selected all radio buttons in




      Software&Updates -> Ubuntu Software -> Downloadable from the internet




      and install it with



      sudo apt-get install oracle-java8-installer





      share|improve this answer

























        up vote
        2
        down vote










        up vote
        2
        down vote









        In my case I just selected all radio buttons in




        Software&Updates -> Ubuntu Software -> Downloadable from the internet




        and install it with



        sudo apt-get install oracle-java8-installer





        share|improve this answer














        In my case I just selected all radio buttons in




        Software&Updates -> Ubuntu Software -> Downloadable from the internet




        and install it with



        sudo apt-get install oracle-java8-installer






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 29 at 9:15









        zx485

        1,45231114




        1,45231114










        answered Nov 28 at 21:42









        Ivan M

        212




        212
























            up vote
            -1
            down vote













            I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems






            share|improve this answer

















            • 1




              If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
              – David Foerster
              Feb 17 at 17:05










            • Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
              – Alexander Kitov
              Feb 18 at 18:13










            • In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
              – David Foerster
              Feb 18 at 19:09

















            up vote
            -1
            down vote













            I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems






            share|improve this answer

















            • 1




              If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
              – David Foerster
              Feb 17 at 17:05










            • Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
              – Alexander Kitov
              Feb 18 at 18:13










            • In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
              – David Foerster
              Feb 18 at 19:09















            up vote
            -1
            down vote










            up vote
            -1
            down vote









            I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems






            share|improve this answer












            I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 17 at 16:27









            Alexander Kitov

            1




            1








            • 1




              If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
              – David Foerster
              Feb 17 at 17:05










            • Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
              – Alexander Kitov
              Feb 18 at 18:13










            • In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
              – David Foerster
              Feb 18 at 19:09
















            • 1




              If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
              – David Foerster
              Feb 17 at 17:05










            • Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
              – Alexander Kitov
              Feb 18 at 18:13










            • In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
              – David Foerster
              Feb 18 at 19:09










            1




            1




            If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
            – David Foerster
            Feb 17 at 17:05




            If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. If you have the reputation don't forget to vote for the answer(s) there that you found useful!
            – David Foerster
            Feb 17 at 17:05












            Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
            – Alexander Kitov
            Feb 18 at 18:13




            Thanks for the advice, David. This is essentially my very first answer. I have no reputation what so ever and I am a complete noob with Linux. After searching for hours and executing blindly apt-get update, apt-get upgrade, apt-get install oracle-java8-installer without anything happening, I found the dependency problem and felt like shearing it here. Cheers!
            – Alexander Kitov
            Feb 18 at 18:13












            In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
            – David Foerster
            Feb 18 at 19:09






            In that case welcome to Ask Ubuntu and thanks for you contribution! I certainly don't blame you for your beginner's mistake since the Q&A model of Ask Ubuntu (and Stack Exchange in general) is a little different from what most people seem used to. Maybe you'd like to take the tour to learn more about it. We're looking forward to your future and (hopefully) high quality contributions!
            – David Foerster
            Feb 18 at 19:09




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f972992%2fcannot-install-oracle-java8-jdk-because-java-common-cannot-be-installed%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei