openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed












40















Can't install Java8



apt-get install 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 : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages


I've searched Google and I've added repos and other suggestions, but nothing has allowed me to install Java 8 yet.



ideas?



lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8
Codename: jessie









share|improve this question




















  • 1





    Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

    – Jayachandran
    Feb 4 '17 at 5:35






  • 1





    Just interesting, why don't you want to install oracle version?

    – ka3ak
    Feb 4 '17 at 7:26











  • @ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

    – Jason
    Feb 4 '17 at 15:32






  • 1





    @FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

    – ka3ak
    Feb 4 '17 at 16:14











  • Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

    – Jason
    Feb 4 '17 at 16:23
















40















Can't install Java8



apt-get install 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 : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages


I've searched Google and I've added repos and other suggestions, but nothing has allowed me to install Java 8 yet.



ideas?



lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8
Codename: jessie









share|improve this question




















  • 1





    Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

    – Jayachandran
    Feb 4 '17 at 5:35






  • 1





    Just interesting, why don't you want to install oracle version?

    – ka3ak
    Feb 4 '17 at 7:26











  • @ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

    – Jason
    Feb 4 '17 at 15:32






  • 1





    @FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

    – ka3ak
    Feb 4 '17 at 16:14











  • Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

    – Jason
    Feb 4 '17 at 16:23














40












40








40


9






Can't install Java8



apt-get install 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 : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages


I've searched Google and I've added repos and other suggestions, but nothing has allowed me to install Java 8 yet.



ideas?



lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8
Codename: jessie









share|improve this question
















Can't install Java8



apt-get install 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 : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages


I've searched Google and I've added repos and other suggestions, but nothing has allowed me to install Java 8 yet.



ideas?



lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8
Codename: jessie






linux debian software-installation java






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 4 '17 at 15:30







Jason

















asked Feb 4 '17 at 2:43









JasonJason

77451527




77451527








  • 1





    Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

    – Jayachandran
    Feb 4 '17 at 5:35






  • 1





    Just interesting, why don't you want to install oracle version?

    – ka3ak
    Feb 4 '17 at 7:26











  • @ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

    – Jason
    Feb 4 '17 at 15:32






  • 1





    @FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

    – ka3ak
    Feb 4 '17 at 16:14











  • Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

    – Jason
    Feb 4 '17 at 16:23














  • 1





    Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

    – Jayachandran
    Feb 4 '17 at 5:35






  • 1





    Just interesting, why don't you want to install oracle version?

    – ka3ak
    Feb 4 '17 at 7:26











  • @ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

    – Jason
    Feb 4 '17 at 15:32






  • 1





    @FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

    – ka3ak
    Feb 4 '17 at 16:14











  • Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

    – Jason
    Feb 4 '17 at 16:23








1




1





Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

– Jayachandran
Feb 4 '17 at 5:35





Facing the same problem here. It was working till yesterday. Today it initially complained about ca-certificates-java and now can't even find the package.

– Jayachandran
Feb 4 '17 at 5:35




1




1





Just interesting, why don't you want to install oracle version?

– ka3ak
Feb 4 '17 at 7:26





Just interesting, why don't you want to install oracle version?

– ka3ak
Feb 4 '17 at 7:26













@ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

– Jason
Feb 4 '17 at 15:32





@ka3ak what is the oracle install version? I tried doing an apt-get install with a package that had install and oracle in it but it did not work.

– Jason
Feb 4 '17 at 15:32




1




1





@FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

– ka3ak
Feb 4 '17 at 16:14





@FrankThornton Here is how I installed it on my system (Kubuntu): sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer Source: webupd8.org/2012/09/…

– ka3ak
Feb 4 '17 at 16:14













Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

– Jason
Feb 4 '17 at 16:23





Thanks! I was pretty sure I tried that or at least something kinda like that and had issues. I may have had a different repo.

– Jason
Feb 4 '17 at 16:23










5 Answers
5






active

oldest

votes


















86














is this jessie? With backports



apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java





share|improve this answer
























  • Backport issue looks like. That allowed it to install.

    – Jason
    Feb 4 '17 at 15:31






  • 1





    That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

    – hheimbuerger
    Apr 17 '17 at 15:22






  • 1





    The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

    – user192526
    Apr 18 '17 at 8:34



















5














It is not working from Jessie backports. I tried stretch and it got installed.



echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && 
apt-get update &&
apt-get install -y --no-install-recommends openjdk-8-jre-headless &&
rm /etc/apt/sources.list.d/stretch.list &&
apt-get clean &&
rm -rf /var/lib/apt/lists/*


P.S.: I used an Australian mirror since I am here. Choose the best for you from here.






share|improve this answer

































    3














    this worked for me many thanks, note you got an extra 'deb' in your echo i had to remove, i am also in Oz but this should work on all repos by now, seems it was an issue with certificates for fixed list of java versions



    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667






    share|improve this answer



















    • 3





      Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

      – Kusalananda
      Feb 4 '17 at 9:02



















    0














    I keep hitting this issue. Very frustrating. I have automated packer builds and when the jdk/jre are updated this issue can resurface. after much hair pulling i've found this to be fairly reliable and fully automateable.



    note that you mush have a backports repo properly defined as mentioned in other parts of this page. my image came with it pre set up. yours however, may not.




    1. install ca-certs from backports


    2. install jre and jdk + headless as a second command



      sudo apt install -t jessie-backports ca-certificates-java
      sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless



    running the two together will prompt for a Y/N response on a config file, which are annoying to automate. so they MUST be run separately if you want this to work w/o human interaction.






    share|improve this answer































      -1














      This works for me



      apt-get install software-properties-common
      add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
      apt-get update
      apt-get install oracle-java8-installer


      referring guide






      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',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        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%2funix.stackexchange.com%2fquestions%2f342403%2fopenjdk-8-jre-headless-depends-ca-certificates-java-but-it-is-not-going-to-be%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        86














        is this jessie? With backports



        apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java





        share|improve this answer
























        • Backport issue looks like. That allowed it to install.

          – Jason
          Feb 4 '17 at 15:31






        • 1





          That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

          – hheimbuerger
          Apr 17 '17 at 15:22






        • 1





          The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

          – user192526
          Apr 18 '17 at 8:34
















        86














        is this jessie? With backports



        apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java





        share|improve this answer
























        • Backport issue looks like. That allowed it to install.

          – Jason
          Feb 4 '17 at 15:31






        • 1





          That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

          – hheimbuerger
          Apr 17 '17 at 15:22






        • 1





          The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

          – user192526
          Apr 18 '17 at 8:34














        86












        86








        86







        is this jessie? With backports



        apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java





        share|improve this answer













        is this jessie? With backports



        apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 4 '17 at 11:38







        user192526




















        • Backport issue looks like. That allowed it to install.

          – Jason
          Feb 4 '17 at 15:31






        • 1





          That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

          – hheimbuerger
          Apr 17 '17 at 15:22






        • 1





          The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

          – user192526
          Apr 18 '17 at 8:34



















        • Backport issue looks like. That allowed it to install.

          – Jason
          Feb 4 '17 at 15:31






        • 1





          That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

          – hheimbuerger
          Apr 17 '17 at 15:22






        • 1





          The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

          – user192526
          Apr 18 '17 at 8:34

















        Backport issue looks like. That allowed it to install.

        – Jason
        Feb 4 '17 at 15:31





        Backport issue looks like. That allowed it to install.

        – Jason
        Feb 4 '17 at 15:31




        1




        1





        That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

        – hheimbuerger
        Apr 17 '17 at 15:22





        That worked for me, too. Mind adding an explanation what the -t parameter does and how this resolves the issue?

        – hheimbuerger
        Apr 17 '17 at 15:22




        1




        1





        The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

        – user192526
        Apr 18 '17 at 8:34





        The option -t tells apt, from which source it should install the package. aptitude why-not ca-certificates-java gives p openjdk-8-jre-headless Beschädigt ca-certificates-java (< 20160321~) You need the Version from jessie-backports. apt-cache policy ca-certificates-java ca-certificates-java: Installiert: 20140324 Installationskandidat: 20140324 Versionstabelle: 20161107~bpo8+1 0 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages *** 20140324 0 500 http://http.us.debian.org/debian/ jessie/main amd64 Packages

        – user192526
        Apr 18 '17 at 8:34













        5














        It is not working from Jessie backports. I tried stretch and it got installed.



        echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && 
        apt-get update &&
        apt-get install -y --no-install-recommends openjdk-8-jre-headless &&
        rm /etc/apt/sources.list.d/stretch.list &&
        apt-get clean &&
        rm -rf /var/lib/apt/lists/*


        P.S.: I used an Australian mirror since I am here. Choose the best for you from here.






        share|improve this answer






























          5














          It is not working from Jessie backports. I tried stretch and it got installed.



          echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && 
          apt-get update &&
          apt-get install -y --no-install-recommends openjdk-8-jre-headless &&
          rm /etc/apt/sources.list.d/stretch.list &&
          apt-get clean &&
          rm -rf /var/lib/apt/lists/*


          P.S.: I used an Australian mirror since I am here. Choose the best for you from here.






          share|improve this answer




























            5












            5








            5







            It is not working from Jessie backports. I tried stretch and it got installed.



            echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && 
            apt-get update &&
            apt-get install -y --no-install-recommends openjdk-8-jre-headless &&
            rm /etc/apt/sources.list.d/stretch.list &&
            apt-get clean &&
            rm -rf /var/lib/apt/lists/*


            P.S.: I used an Australian mirror since I am here. Choose the best for you from here.






            share|improve this answer















            It is not working from Jessie backports. I tried stretch and it got installed.



            echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && 
            apt-get update &&
            apt-get install -y --no-install-recommends openjdk-8-jre-headless &&
            rm /etc/apt/sources.list.d/stretch.list &&
            apt-get clean &&
            rm -rf /var/lib/apt/lists/*


            P.S.: I used an Australian mirror since I am here. Choose the best for you from here.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 23 '17 at 16:59









            chaos

            35.3k773116




            35.3k773116










            answered Feb 4 '17 at 5:43









            JayachandranJayachandran

            1513




            1513























                3














                this worked for me many thanks, note you got an extra 'deb' in your echo i had to remove, i am also in Oz but this should work on all repos by now, seems it was an issue with certificates for fixed list of java versions



                https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667






                share|improve this answer



















                • 3





                  Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                  – Kusalananda
                  Feb 4 '17 at 9:02
















                3














                this worked for me many thanks, note you got an extra 'deb' in your echo i had to remove, i am also in Oz but this should work on all repos by now, seems it was an issue with certificates for fixed list of java versions



                https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667






                share|improve this answer



















                • 3





                  Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                  – Kusalananda
                  Feb 4 '17 at 9:02














                3












                3








                3







                this worked for me many thanks, note you got an extra 'deb' in your echo i had to remove, i am also in Oz but this should work on all repos by now, seems it was an issue with certificates for fixed list of java versions



                https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667






                share|improve this answer













                this worked for me many thanks, note you got an extra 'deb' in your echo i had to remove, i am also in Oz but this should work on all repos by now, seems it was an issue with certificates for fixed list of java versions



                https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 4 '17 at 8:53









                new_java_usernew_java_user

                311




                311








                • 3





                  Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                  – Kusalananda
                  Feb 4 '17 at 9:02














                • 3





                  Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                  – Kusalananda
                  Feb 4 '17 at 9:02








                3




                3





                Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                – Kusalananda
                Feb 4 '17 at 9:02





                Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline.

                – Kusalananda
                Feb 4 '17 at 9:02











                0














                I keep hitting this issue. Very frustrating. I have automated packer builds and when the jdk/jre are updated this issue can resurface. after much hair pulling i've found this to be fairly reliable and fully automateable.



                note that you mush have a backports repo properly defined as mentioned in other parts of this page. my image came with it pre set up. yours however, may not.




                1. install ca-certs from backports


                2. install jre and jdk + headless as a second command



                  sudo apt install -t jessie-backports ca-certificates-java
                  sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless



                running the two together will prompt for a Y/N response on a config file, which are annoying to automate. so they MUST be run separately if you want this to work w/o human interaction.






                share|improve this answer




























                  0














                  I keep hitting this issue. Very frustrating. I have automated packer builds and when the jdk/jre are updated this issue can resurface. after much hair pulling i've found this to be fairly reliable and fully automateable.



                  note that you mush have a backports repo properly defined as mentioned in other parts of this page. my image came with it pre set up. yours however, may not.




                  1. install ca-certs from backports


                  2. install jre and jdk + headless as a second command



                    sudo apt install -t jessie-backports ca-certificates-java
                    sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless



                  running the two together will prompt for a Y/N response on a config file, which are annoying to automate. so they MUST be run separately if you want this to work w/o human interaction.






                  share|improve this answer


























                    0












                    0








                    0







                    I keep hitting this issue. Very frustrating. I have automated packer builds and when the jdk/jre are updated this issue can resurface. after much hair pulling i've found this to be fairly reliable and fully automateable.



                    note that you mush have a backports repo properly defined as mentioned in other parts of this page. my image came with it pre set up. yours however, may not.




                    1. install ca-certs from backports


                    2. install jre and jdk + headless as a second command



                      sudo apt install -t jessie-backports ca-certificates-java
                      sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless



                    running the two together will prompt for a Y/N response on a config file, which are annoying to automate. so they MUST be run separately if you want this to work w/o human interaction.






                    share|improve this answer













                    I keep hitting this issue. Very frustrating. I have automated packer builds and when the jdk/jre are updated this issue can resurface. after much hair pulling i've found this to be fairly reliable and fully automateable.



                    note that you mush have a backports repo properly defined as mentioned in other parts of this page. my image came with it pre set up. yours however, may not.




                    1. install ca-certs from backports


                    2. install jre and jdk + headless as a second command



                      sudo apt install -t jessie-backports ca-certificates-java
                      sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless



                    running the two together will prompt for a Y/N response on a config file, which are annoying to automate. so they MUST be run separately if you want this to work w/o human interaction.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 26 '18 at 19:12









                    mchodsonmchodson

                    1




                    1























                        -1














                        This works for me



                        apt-get install software-properties-common
                        add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
                        apt-get update
                        apt-get install oracle-java8-installer


                        referring guide






                        share|improve this answer




























                          -1














                          This works for me



                          apt-get install software-properties-common
                          add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
                          apt-get update
                          apt-get install oracle-java8-installer


                          referring guide






                          share|improve this answer


























                            -1












                            -1








                            -1







                            This works for me



                            apt-get install software-properties-common
                            add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
                            apt-get update
                            apt-get install oracle-java8-installer


                            referring guide






                            share|improve this answer













                            This works for me



                            apt-get install software-properties-common
                            add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
                            apt-get update
                            apt-get install oracle-java8-installer


                            referring guide







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 29 '17 at 13:10









                            user3073309user3073309

                            1




                            1






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                • 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%2funix.stackexchange.com%2fquestions%2f342403%2fopenjdk-8-jre-headless-depends-ca-certificates-java-but-it-is-not-going-to-be%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

                                Histoire des bourses de valeurs

                                Why is there Russian traffic in my log files?

                                Rename multiple files to decrement number in file name?