Can't install Java 8 in Xubuntu 18.04 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Can not install JavaHow can I uninstall oracle java 8 and install oracle java 7 instead with webupd8 installer?Unable to install jdk 6 after uninstalling jdk 7Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jarError while setting up jdk8 on Ubuntu 14.04LTSCan't install Oracle Java 9Cannot install phpMyAdminInstall Oracle Java 6 error issueCan not install Java 8Sub-process /usr/bin/dpkg returned an error code (1) Ubuntu 18.04
Wu formula for manifolds with boundary
Significance of Cersei's obsession with elephants?
How does the math work when buying airline miles?
Fantasy story; one type of magic grows in power with use, but the more powerful they are, they more they are drawn to travel to their source
Why are the trig functions versine, haversine, exsecant, etc, rarely used in modern mathematics?
Can a new player join a group only when a new campaign starts?
What does できなさすぎる means?
What is the meaning of the simile “quick as silk”?
Is there any way for the UK Prime Minister to make a motion directly dependent on Government confidence?
Is safe to use va_start macro with this as parameter?
Can a party unilaterally change candidates in preparation for a General election?
How to compare two different files line by line in unix?
Do wooden building fires get hotter than 600°C?
Is the Standard Deduction better than Itemized when both are the same amount?
Can anything be seen from the center of the Boötes void? How dark would it be?
Using audio cues to encourage good posture
また usage in a dictionary
An adverb for when you're not exaggerating
Is it a good idea to use CNN to classify 1D signal?
Is there a kind of relay only consumes power when switching?
Dating a Former Employee
Is grep documentation wrong?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
Using et al. for a last / senior author rather than for a first author
Can't install Java 8 in Xubuntu 18.04
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Can not install JavaHow can I uninstall oracle java 8 and install oracle java 7 instead with webupd8 installer?Unable to install jdk 6 after uninstalling jdk 7Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jarError while setting up jdk8 on Ubuntu 14.04LTSCan't install Oracle Java 9Cannot install phpMyAdminInstall Oracle Java 6 error issueCan not install Java 8Sub-process /usr/bin/dpkg returned an error code (1) Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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
New contributor
add a comment |
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
New contributor
1
Please run this insteadLANG=C sudo apt-get install oracle-java8-installer
.
– Emmet
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago
add a comment |
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
New contributor
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
software-installation java oracle
New contributor
New contributor
edited 1 min ago
karel
61.1k13132155
61.1k13132155
New contributor
asked 4 hours ago
Keyver MendozaKeyver Mendoza
11
11
New contributor
New contributor
1
Please run this insteadLANG=C sudo apt-get install oracle-java8-installer
.
– Emmet
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago
add a comment |
1
Please run this insteadLANG=C sudo apt-get install oracle-java8-installer
.
– Emmet
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago
1
1
Please run this instead
LANG=C sudo apt-get install oracle-java8-installer
.– Emmet
4 hours ago
Please run this instead
LANG=C sudo apt-get install oracle-java8-installer
.– Emmet
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
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
New contributor
add a comment |
~ sudo wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
zsh: no matches found: https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
New contributor
add a comment |
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/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
);
);
Keyver Mendoza is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1134789%2fcant-install-java-8-in-xubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
edited 3 hours ago
New contributor
answered 4 hours ago
Olesya ShelestovaOlesya Shelestova
11
11
New contributor
New contributor
add a comment |
add a comment |
~ sudo wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
zsh: no matches found: https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
New contributor
add a comment |
~ sudo wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
zsh: no matches found: https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
New contributor
add a comment |
~ sudo wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
zsh: no matches found: https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
New contributor
~ sudo wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
zsh: no matches found: https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1555549457_a97b02ea0e2d39aeaf0e2a1d180a6b7e
New contributor
New contributor
answered 51 mins ago
Dennis NinjDennis Ninj
1011
1011
New contributor
New contributor
add a comment |
add a comment |
Keyver Mendoza is a new contributor. Be nice, and check out our Code of Conduct.
Keyver Mendoza is a new contributor. Be nice, and check out our Code of Conduct.
Keyver Mendoza is a new contributor. Be nice, and check out our Code of Conduct.
Keyver Mendoza is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2faskubuntu.com%2fquestions%2f1134789%2fcant-install-java-8-in-xubuntu-18-04%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
Please run this instead
LANG=C sudo apt-get install oracle-java8-installer
.– Emmet
4 hours ago
screenshot : i.imgur.com/pf5rwnm.png
– Keyver Mendoza
4 hours ago