Can't install Java 8 in Xubuntu 18.04Can't install Oracle Java 8 in Ubuntu 18.10Unable to install jdk 6 after uninstalling jdk 7Error while setting up jdk8 on Ubuntu 14.04LTSWhy can't I install Oracle Java 6?Can't install Oracle Java 8 in Ubuntu 16.04Cannot install phpMyAdminInstall Oracle Java 6 error issueoracle-java-10-installer package gives 404 error on Ubuntu 18.04Install oracle java jdk 12

Could a small private island protect its sovereignty?

What is the meaning of "log" in this sentence?

Print the sequence

AD823 current sense

Modify real part and leaves imaginary part unchanged

Relation between signal processing and control systems engineering?

A Society Built Around Theft?

Can a surprised monster use lair actions if they roll an initiative above 20?

What is this dial on my old SLR for?

My first random password generator

How effective are nunchaku as a choking weapon?

chain with double bond or triple bond

"a sign that one should be computing K-theory"

Do "chess engine in the cloud" services exist?

Forced Conversion of Majority

Should I withdraw my paper because the Editor is behaving so badly with me?

D&D Monsters and Copyright

Can you be promoted and then fired for-cause? (Performance)

Can you decide not to sneak into a room after seeing your roll?

How are steel imports supposed to threaten US national security?

An employee has low self-confidence, and is performing poorly. How can I help?

Looking for PC graphics demo software from the early 90s called "Unreal"

Why didn't Kes send Voyager home?

How can I curtail abuse of the Illusion wizard's Illusory Reality feature?



Can't install Java 8 in Xubuntu 18.04


Can't install Oracle Java 8 in Ubuntu 18.10Unable to install jdk 6 after uninstalling jdk 7Error while setting up jdk8 on Ubuntu 14.04LTSWhy can't I install Oracle Java 6?Can't install Oracle Java 8 in Ubuntu 16.04Cannot install phpMyAdminInstall Oracle Java 6 error issueoracle-java-10-installer package gives 404 error on Ubuntu 18.04Install oracle java jdk 12






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









4

















I can't install Java 8 in Xubuntu 18.04/



sudo apt-get install oracle-java8-installer
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u201-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 197 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u201-1~webupd8~1) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2019-04-17 21:34:46-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.32.64.102
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz [following]
--2019-04-17 21:34:46-- https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 88.221.34.197, 2600:1403:2:59e::366, 2600:1403:2:580::366
Connecting to edelivery.oracle.com (edelivery.oracle.com)|88.221.34.197|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-17 21:34:50 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
installed oracle-java8-installer package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)









share|improve this question























  • 1





    Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

    – Jim
    Apr 18 at 1:12












  • screenshot : i.imgur.com/pf5rwnm.png

    – Keyver Mendoza
    Apr 18 at 1:38

















4

















I can't install Java 8 in Xubuntu 18.04/



sudo apt-get install oracle-java8-installer
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u201-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 197 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u201-1~webupd8~1) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2019-04-17 21:34:46-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.32.64.102
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz [following]
--2019-04-17 21:34:46-- https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 88.221.34.197, 2600:1403:2:59e::366, 2600:1403:2:580::366
Connecting to edelivery.oracle.com (edelivery.oracle.com)|88.221.34.197|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-17 21:34:50 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
installed oracle-java8-installer package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)









share|improve this question























  • 1





    Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

    – Jim
    Apr 18 at 1:12












  • screenshot : i.imgur.com/pf5rwnm.png

    – Keyver Mendoza
    Apr 18 at 1:38













4












4








4








I can't install Java 8 in Xubuntu 18.04/



sudo apt-get install oracle-java8-installer
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u201-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 197 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u201-1~webupd8~1) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2019-04-17 21:34:46-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.32.64.102
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz [following]
--2019-04-17 21:34:46-- https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 88.221.34.197, 2600:1403:2:59e::366, 2600:1403:2:580::366
Connecting to edelivery.oracle.com (edelivery.oracle.com)|88.221.34.197|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-17 21:34:50 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
installed oracle-java8-installer package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)









share|improve this question
















I can't install Java 8 in Xubuntu 18.04/



sudo apt-get install oracle-java8-installer
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u201-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remove and 197 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oracle-java8-installer (8u201-1~webupd8~1) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2019-04-17 21:34:46-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.32.64.102
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz [following]
--2019-04-17 21:34:46-- https://edelivery.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 88.221.34.197, 2600:1403:2:59e::366, 2600:1403:2:580::366
Connecting to edelivery.oracle.com (edelivery.oracle.com)|88.221.34.197|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8 [following]
--2019-04-17 21:34:47-- https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555551407_c7bf9550ae418012627e2e12b0261dc8
Connecting to download.oracle.com (download.oracle.com)|23.32.64.102|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-17 21:34:50 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
installed oracle-java8-installer package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)






software-installation java oracle






share|improve this question















share|improve this question













share|improve this question




share|improve this question



share|improve this question








edited Apr 18 at 5:47









karel

68.5k15 gold badges154 silver badges174 bronze badges




68.5k15 gold badges154 silver badges174 bronze badges










asked Apr 18 at 1:02









Keyver MendozaKeyver Mendoza

213 bronze badges




213 bronze badges










  • 1





    Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

    – Jim
    Apr 18 at 1:12












  • screenshot : i.imgur.com/pf5rwnm.png

    – Keyver Mendoza
    Apr 18 at 1:38












  • 1





    Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

    – Jim
    Apr 18 at 1:12












  • screenshot : i.imgur.com/pf5rwnm.png

    – Keyver Mendoza
    Apr 18 at 1:38







1




1





Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

– Jim
Apr 18 at 1:12






Please run this instead LANG=C sudo apt-get install oracle-java8-installer.

– Jim
Apr 18 at 1:12














screenshot : i.imgur.com/pf5rwnm.png

– Keyver Mendoza
Apr 18 at 1:38





screenshot : i.imgur.com/pf5rwnm.png

– Keyver Mendoza
Apr 18 at 1:38










1 Answer
1






active

oldest

votes


















4


















Same problem in the Ubuntu 14.



This is due to the fact that Oracle has moved from 201 to 211 version, removing 201 from its resource. And webupd8team did not have correct the links.



Check this solution:



mkdir -p /opt/jdk
wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e


Manual download from here, we need jdk-8u211-linux-x64.tar.gz or jdk-8uXXX-linux-x64.tar.gz



tar -zxf jdk-8u211-linux-x64.tar.gz -C /opt/jdk/

update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100

update-alternatives --display java
update-alternatives --display javac

java -version


For cancel installation in every time when apt-get update will be running:



apt-get remove oracle-java8-installer
apt-get purge oracle-java8-installer
apt-mark hold oracle-java8-installer





share|improve this answer




























  • I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

    – Dennis Ninj
    Apr 18 at 7:52











  • Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

    – Synoli
    Apr 18 at 10:08






  • 1





    Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

    – Logix
    Apr 18 at 15:38











  • On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

    – Kulfy
    Apr 19 at 18:17













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134789%2fcant-install-java-8-in-xubuntu-18-04%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4


















Same problem in the Ubuntu 14.



This is due to the fact that Oracle has moved from 201 to 211 version, removing 201 from its resource. And webupd8team did not have correct the links.



Check this solution:



mkdir -p /opt/jdk
wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e


Manual download from here, we need jdk-8u211-linux-x64.tar.gz or jdk-8uXXX-linux-x64.tar.gz



tar -zxf jdk-8u211-linux-x64.tar.gz -C /opt/jdk/

update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100

update-alternatives --display java
update-alternatives --display javac

java -version


For cancel installation in every time when apt-get update will be running:



apt-get remove oracle-java8-installer
apt-get purge oracle-java8-installer
apt-mark hold oracle-java8-installer





share|improve this answer




























  • I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

    – Dennis Ninj
    Apr 18 at 7:52











  • Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

    – Synoli
    Apr 18 at 10:08






  • 1





    Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

    – Logix
    Apr 18 at 15:38











  • On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

    – Kulfy
    Apr 19 at 18:17
















4


















Same problem in the Ubuntu 14.



This is due to the fact that Oracle has moved from 201 to 211 version, removing 201 from its resource. And webupd8team did not have correct the links.



Check this solution:



mkdir -p /opt/jdk
wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e


Manual download from here, we need jdk-8u211-linux-x64.tar.gz or jdk-8uXXX-linux-x64.tar.gz



tar -zxf jdk-8u211-linux-x64.tar.gz -C /opt/jdk/

update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100

update-alternatives --display java
update-alternatives --display javac

java -version


For cancel installation in every time when apt-get update will be running:



apt-get remove oracle-java8-installer
apt-get purge oracle-java8-installer
apt-mark hold oracle-java8-installer





share|improve this answer




























  • I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

    – Dennis Ninj
    Apr 18 at 7:52











  • Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

    – Synoli
    Apr 18 at 10:08






  • 1





    Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

    – Logix
    Apr 18 at 15:38











  • On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

    – Kulfy
    Apr 19 at 18:17














4














4










4









Same problem in the Ubuntu 14.



This is due to the fact that Oracle has moved from 201 to 211 version, removing 201 from its resource. And webupd8team did not have correct the links.



Check this solution:



mkdir -p /opt/jdk
wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e


Manual download from here, we need jdk-8u211-linux-x64.tar.gz or jdk-8uXXX-linux-x64.tar.gz



tar -zxf jdk-8u211-linux-x64.tar.gz -C /opt/jdk/

update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100

update-alternatives --display java
update-alternatives --display javac

java -version


For cancel installation in every time when apt-get update will be running:



apt-get remove oracle-java8-installer
apt-get purge oracle-java8-installer
apt-mark hold oracle-java8-installer





share|improve this answer
















Same problem in the Ubuntu 14.



This is due to the fact that Oracle has moved from 201 to 211 version, removing 201 from its resource. And webupd8team did not have correct the links.



Check this solution:



mkdir -p /opt/jdk
wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e


Manual download from here, we need jdk-8u211-linux-x64.tar.gz or jdk-8uXXX-linux-x64.tar.gz



tar -zxf jdk-8u211-linux-x64.tar.gz -C /opt/jdk/

update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100

update-alternatives --display java
update-alternatives --display javac

java -version


For cancel installation in every time when apt-get update will be running:



apt-get remove oracle-java8-installer
apt-get purge oracle-java8-installer
apt-mark hold oracle-java8-installer






share|improve this answer















share|improve this answer




share|improve this answer



share|improve this answer








edited Apr 18 at 2:40

























answered Apr 18 at 1:47









Olesya ShelestovaOlesya Shelestova

412 bronze badges




412 bronze badges















  • I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

    – Dennis Ninj
    Apr 18 at 7:52











  • Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

    – Synoli
    Apr 18 at 10:08






  • 1





    Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

    – Logix
    Apr 18 at 15:38











  • On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

    – Kulfy
    Apr 19 at 18:17


















  • I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

    – Dennis Ninj
    Apr 18 at 7:52











  • Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

    – Synoli
    Apr 18 at 10:08






  • 1





    Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

    – Logix
    Apr 18 at 15:38











  • On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

    – Kulfy
    Apr 19 at 18:17

















I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

– Dennis Ninj
Apr 18 at 7:52





I am getting an error ~ sudo wget download.oracle.com/otn/java/jdk/8u211-b12/… zsh: no matches found: download.oracle.com/otn/java/jdk/8u211-b12/…

– Dennis Ninj
Apr 18 at 7:52













Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

– Synoli
Apr 18 at 10:08





Hi Olesya, and welcome to Stack Exchange! The wget URL won’t work for me either. Could the AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e be related to your personal authenticated session, and have become invalid by now?

– Synoli
Apr 18 at 10:08




1




1





Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

– Logix
Apr 18 at 15:38





Oracle now requires an account to download new versions of Java, after its license changed (btw now it's offered at no cost only for personal and development use, requiring a commercial license for everything else), that's why it doesn't work, and why the PPA will probably not be updated.

– Logix
Apr 18 at 15:38













On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

– Kulfy
Apr 19 at 18:17






On a side note don't use wget command. This is a one time link provided to a particular IP for particular timestamp. Instead download JDK from Oracle's site. You need to authenticate for that.

– Kulfy
Apr 19 at 18:17



















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134789%2fcant-install-java-8-in-xubuntu-18-04%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

Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü