problem with installation of Java JDK 11











up vote
0
down vote

favorite












sudo apt install openjdk-11-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jdk : Depends: openjdk-11-jre (= 11~24-1~18.04)
Depends: openjdk-11-jdk-headless (= 11~24-1~18.04)
openjdk-11-jre-headless : Conflicts: oracle-java11-installer but 11.0.1-2~linuxuprising1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Please help how to resolve










share|improve this question
























  • Have you tried apt --fix-broken install as advised?
    – Mr Shunz
    Nov 29 at 9:55










  • You cannot install oracle Java and openjdk at the same time as for now.
    – Alvin Liang
    Nov 29 at 9:55










  • bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
    – Alvin Liang
    Nov 29 at 9:56















up vote
0
down vote

favorite












sudo apt install openjdk-11-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jdk : Depends: openjdk-11-jre (= 11~24-1~18.04)
Depends: openjdk-11-jdk-headless (= 11~24-1~18.04)
openjdk-11-jre-headless : Conflicts: oracle-java11-installer but 11.0.1-2~linuxuprising1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Please help how to resolve










share|improve this question
























  • Have you tried apt --fix-broken install as advised?
    – Mr Shunz
    Nov 29 at 9:55










  • You cannot install oracle Java and openjdk at the same time as for now.
    – Alvin Liang
    Nov 29 at 9:55










  • bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
    – Alvin Liang
    Nov 29 at 9:56













up vote
0
down vote

favorite









up vote
0
down vote

favorite











sudo apt install openjdk-11-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jdk : Depends: openjdk-11-jre (= 11~24-1~18.04)
Depends: openjdk-11-jdk-headless (= 11~24-1~18.04)
openjdk-11-jre-headless : Conflicts: oracle-java11-installer but 11.0.1-2~linuxuprising1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Please help how to resolve










share|improve this question















sudo apt install openjdk-11-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jdk : Depends: openjdk-11-jre (= 11~24-1~18.04)
Depends: openjdk-11-jdk-headless (= 11~24-1~18.04)
openjdk-11-jre-headless : Conflicts: oracle-java11-installer but 11.0.1-2~linuxuprising1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Please help how to resolve







java openjdk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 at 9:54









Mr Shunz

2,2091922




2,2091922










asked Nov 29 at 9:48









Ervin Smajic

1




1












  • Have you tried apt --fix-broken install as advised?
    – Mr Shunz
    Nov 29 at 9:55










  • You cannot install oracle Java and openjdk at the same time as for now.
    – Alvin Liang
    Nov 29 at 9:55










  • bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
    – Alvin Liang
    Nov 29 at 9:56


















  • Have you tried apt --fix-broken install as advised?
    – Mr Shunz
    Nov 29 at 9:55










  • You cannot install oracle Java and openjdk at the same time as for now.
    – Alvin Liang
    Nov 29 at 9:55










  • bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
    – Alvin Liang
    Nov 29 at 9:56
















Have you tried apt --fix-broken install as advised?
– Mr Shunz
Nov 29 at 9:55




Have you tried apt --fix-broken install as advised?
– Mr Shunz
Nov 29 at 9:55












You cannot install oracle Java and openjdk at the same time as for now.
– Alvin Liang
Nov 29 at 9:55




You cannot install oracle Java and openjdk at the same time as for now.
– Alvin Liang
Nov 29 at 9:55












bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
– Alvin Liang
Nov 29 at 9:56




bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1782630
– Alvin Liang
Nov 29 at 9:56










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Please can you try and see which jdk will install with this:



sudo apt install default-jre


If you don't like the version don't install it. The last time I test it It was build of java 10.0.2 but it was compatible with java 11 (I dont remeber clearly). Nevertheless in the future it will be changes to java 11.



Check here for more info: Why is OpenJDK 10 packaged as openjdk-11-*?






share|improve this answer








New contributor




Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















    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%2f1097063%2fproblem-with-installation-of-java-jdk-11%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Please can you try and see which jdk will install with this:



    sudo apt install default-jre


    If you don't like the version don't install it. The last time I test it It was build of java 10.0.2 but it was compatible with java 11 (I dont remeber clearly). Nevertheless in the future it will be changes to java 11.



    Check here for more info: Why is OpenJDK 10 packaged as openjdk-11-*?






    share|improve this answer








    New contributor




    Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote













      Please can you try and see which jdk will install with this:



      sudo apt install default-jre


      If you don't like the version don't install it. The last time I test it It was build of java 10.0.2 but it was compatible with java 11 (I dont remeber clearly). Nevertheless in the future it will be changes to java 11.



      Check here for more info: Why is OpenJDK 10 packaged as openjdk-11-*?






      share|improve this answer








      New contributor




      Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        up vote
        0
        down vote










        up vote
        0
        down vote









        Please can you try and see which jdk will install with this:



        sudo apt install default-jre


        If you don't like the version don't install it. The last time I test it It was build of java 10.0.2 but it was compatible with java 11 (I dont remeber clearly). Nevertheless in the future it will be changes to java 11.



        Check here for more info: Why is OpenJDK 10 packaged as openjdk-11-*?






        share|improve this answer








        New contributor




        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        Please can you try and see which jdk will install with this:



        sudo apt install default-jre


        If you don't like the version don't install it. The last time I test it It was build of java 10.0.2 but it was compatible with java 11 (I dont remeber clearly). Nevertheless in the future it will be changes to java 11.



        Check here for more info: Why is OpenJDK 10 packaged as openjdk-11-*?







        share|improve this answer








        New contributor




        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Dec 3 at 8:23









        Pulszar

        1011




        1011




        New contributor




        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Pulszar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f1097063%2fproblem-with-installation-of-java-jdk-11%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕