Unable to install JDK 8. I get an error [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
This question already has an answer here:
Can't install Oracle Java 8 in Ubuntu 16.04
3 answers
Cannot install JDK 9 via apt
2 answers
I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java
and sudo apt-get update
. After that I ran sudo apt-get install oracle-java8-installer
and got an error. Here's the error:
Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer
(I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer
again. It did not work.
apt java jdk
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
0
down vote
favorite
This question already has an answer here:
Can't install Oracle Java 8 in Ubuntu 16.04
3 answers
Cannot install JDK 9 via apt
2 answers
I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java
and sudo apt-get update
. After that I ran sudo apt-get install oracle-java8-installer
and got an error. Here's the error:
Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer
(I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer
again. It did not work.
apt java jdk
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
Can't install Oracle Java 8 in Ubuntu 16.04
3 answers
Cannot install JDK 9 via apt
2 answers
I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java
and sudo apt-get update
. After that I ran sudo apt-get install oracle-java8-installer
and got an error. Here's the error:
Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer
(I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer
again. It did not work.
apt java jdk
This question already has an answer here:
Can't install Oracle Java 8 in Ubuntu 16.04
3 answers
Cannot install JDK 9 via apt
2 answers
I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java
and sudo apt-get update
. After that I ran sudo apt-get install oracle-java8-installer
and got an error. Here's the error:
Connecting to download.oracle.com (download.oracle.com)|2.21.176.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-17 17:13:56 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Did I miss a step here? I searched for this error and the only thing I found was a question here in AskUbuntu instructing OP to run sudo apt-get purge oracle-java9-installer
(I changed java9 to java8 since I'm trying to install java 8) then ran the command sudo apt-get install oracle-java8-installer
again. It did not work.
This question already has an answer here:
Can't install Oracle Java 8 in Ubuntu 16.04
3 answers
Cannot install JDK 9 via apt
2 answers
apt java jdk
apt java jdk
asked Apr 17 at 20:30
jaryl
32
32
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12
add a comment |Â
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
add a comment |Â
up vote
0
down vote
Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer
again. Now Java 8 is installed.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
add a comment |Â
up vote
0
down vote
A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.
A new Java version was released: http://www.oracle.com/technetwork/java/javase/downloads/index.html I guess you'll have to wait for the PPA to add the new version and then try again.
answered Apr 17 at 21:02
Logix
5067
5067
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
add a comment |Â
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
Is there another way to install java 8?
â jaryl
Apr 17 at 23:12
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
I see the PPA was updated so you can repeat the steps and it should work now.
â Logix
Apr 18 at 19:06
add a comment |Â
up vote
0
down vote
Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer
again. Now Java 8 is installed.
add a comment |Â
up vote
0
down vote
Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer
again. Now Java 8 is installed.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer
again. Now Java 8 is installed.
Uninstalling openJDK solved my problem. I uninstalled it and then ran sudo apt-get install oracle-java8-installer
again. Now Java 8 is installed.
answered Apr 18 at 18:59
jaryl
32
32
add a comment |Â
add a comment |Â
Same problem with JDK 10. PPAs don't update links immediately when a new version is released.
â Sina Madani
Apr 18 at 10:12