Upgrade from openjdk-7 to openjdk-8 on debian

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











up vote
1
down vote

favorite












I have the following Java-related packages installed on my Debian 8 machine



# sudo dpkg -l | grep -i java
ii ca-certificates-java 20140324 all Common CA certificates (JKS keystore)
ii java-common 0.52 all Base of all Java packages
ii libatk-wrapper-java 0.30.5-1 all ATK implementation for Java using JNI
ii libatk-wrapper-java-jni:amd64 0.30.5-1 amd64 ATK implementation for Java using JNI (JNI bindings)
ii openjdk-7-jre:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-7-jre-headless:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
ii tzdata-java 2018e-0+deb8u1 all time zone and daylight-saving time data for use by java runtimes


I just want to install Java 8 but I keep running into dependencies issues:



# sudo apt install openjdk-8-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


# sudo apt install openjdk-8-jre openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-8-jre-headless : Breaks: ca-certificates-java (< 20160321~) but 20140324 is to be installed
E: Unable to correct problems, you have held broken packages.


How can I upgrade to Java 8, addressing all dependencies issues at the same time?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I have the following Java-related packages installed on my Debian 8 machine



    # sudo dpkg -l | grep -i java
    ii ca-certificates-java 20140324 all Common CA certificates (JKS keystore)
    ii java-common 0.52 all Base of all Java packages
    ii libatk-wrapper-java 0.30.5-1 all ATK implementation for Java using JNI
    ii libatk-wrapper-java-jni:amd64 0.30.5-1 amd64 ATK implementation for Java using JNI (JNI bindings)
    ii openjdk-7-jre:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT
    ii openjdk-7-jre-headless:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
    ii tzdata-java 2018e-0+deb8u1 all time zone and daylight-saving time data for use by java runtimes


    I just want to install Java 8 but I keep running into dependencies issues:



    # sudo apt install openjdk-8-jre
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    # sudo apt install openjdk-8-jre openjdk-8-jre-headless
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    openjdk-8-jre-headless : Breaks: ca-certificates-java (< 20160321~) but 20140324 is to be installed
    E: Unable to correct problems, you have held broken packages.


    How can I upgrade to Java 8, addressing all dependencies issues at the same time?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have the following Java-related packages installed on my Debian 8 machine



      # sudo dpkg -l | grep -i java
      ii ca-certificates-java 20140324 all Common CA certificates (JKS keystore)
      ii java-common 0.52 all Base of all Java packages
      ii libatk-wrapper-java 0.30.5-1 all ATK implementation for Java using JNI
      ii libatk-wrapper-java-jni:amd64 0.30.5-1 amd64 ATK implementation for Java using JNI (JNI bindings)
      ii openjdk-7-jre:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT
      ii openjdk-7-jre-headless:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
      ii tzdata-java 2018e-0+deb8u1 all time zone and daylight-saving time data for use by java runtimes


      I just want to install Java 8 but I keep running into dependencies issues:



      # sudo apt install openjdk-8-jre
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      # sudo apt install openjdk-8-jre openjdk-8-jre-headless
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      openjdk-8-jre-headless : Breaks: ca-certificates-java (< 20160321~) but 20140324 is to be installed
      E: Unable to correct problems, you have held broken packages.


      How can I upgrade to Java 8, addressing all dependencies issues at the same time?










      share|improve this question















      I have the following Java-related packages installed on my Debian 8 machine



      # sudo dpkg -l | grep -i java
      ii ca-certificates-java 20140324 all Common CA certificates (JKS keystore)
      ii java-common 0.52 all Base of all Java packages
      ii libatk-wrapper-java 0.30.5-1 all ATK implementation for Java using JNI
      ii libatk-wrapper-java-jni:amd64 0.30.5-1 amd64 ATK implementation for Java using JNI (JNI bindings)
      ii openjdk-7-jre:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT
      ii openjdk-7-jre-headless:amd64 7u181-2.6.14-1~deb8u1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
      ii tzdata-java 2018e-0+deb8u1 all time zone and daylight-saving time data for use by java runtimes


      I just want to install Java 8 but I keep running into dependencies issues:



      # sudo apt install openjdk-8-jre
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      openjdk-8-jre : Depends: openjdk-8-jre-headless (= 8u171-b11-1~bpo8+1) but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      # sudo apt install openjdk-8-jre openjdk-8-jre-headless
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      openjdk-8-jre-headless : Breaks: ca-certificates-java (< 20160321~) but 20140324 is to be installed
      E: Unable to correct problems, you have held broken packages.


      How can I upgrade to Java 8, addressing all dependencies issues at the same time?







      debian apt upgrade java openjdk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago









      Stephen Kitt

      153k23338406




      153k23338406










      asked 9 hours ago









      pkaramol

      434215




      434215




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          You need to tell apt to consider backported packages:



          apt -t jessie-backports install openjdk-8-jre





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478627%2fupgrade-from-openjdk-7-to-openjdk-8-on-debian%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            You need to tell apt to consider backported packages:



            apt -t jessie-backports install openjdk-8-jre





            share|improve this answer
























              up vote
              3
              down vote













              You need to tell apt to consider backported packages:



              apt -t jessie-backports install openjdk-8-jre





              share|improve this answer






















                up vote
                3
                down vote










                up vote
                3
                down vote









                You need to tell apt to consider backported packages:



                apt -t jessie-backports install openjdk-8-jre





                share|improve this answer












                You need to tell apt to consider backported packages:



                apt -t jessie-backports install openjdk-8-jre






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 9 hours ago









                Stephen Kitt

                153k23338406




                153k23338406



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478627%2fupgrade-from-openjdk-7-to-openjdk-8-on-debian%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay