openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
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
|
show 1 more comment
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
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
|
show 1 more comment
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
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
linux debian software-installation java
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
|
show 1 more comment
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
|
show 1 more comment
5 Answers
5
active
oldest
votes
is this jessie? With backports
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
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-tparameter 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-javagivesp 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
add a comment |
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.
add a comment |
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
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
add a comment |
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.
- install ca-certs from backports
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.
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
is this jessie? With backports
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
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-tparameter 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-javagivesp 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
add a comment |
is this jessie? With backports
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
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-tparameter 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-javagivesp 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
add a comment |
is this jessie? With backports
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
is this jessie? With backports
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
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-tparameter 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-javagivesp 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
add a comment |
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-tparameter 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-javagivesp 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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 23 '17 at 16:59
chaos
35.3k773116
35.3k773116
answered Feb 4 '17 at 5:43
JayachandranJayachandran
1513
1513
add a comment |
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
- install ca-certs from backports
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.
add a comment |
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.
- install ca-certs from backports
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.
add a comment |
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.
- install ca-certs from backports
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.
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.
- install ca-certs from backports
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.
answered Apr 26 '18 at 19:12
mchodsonmchodson
1
1
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Aug 29 '17 at 13:10
user3073309user3073309
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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