I get the following error:
Setting up oracle-java8-installer (8u151-1~webupd8~0) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
Resolving download.oracle.com (download.oracle.com)... 104.104.142.192
Connecting to download.oracle.com (download.oracle.com)|104.104.142.192|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz [following]
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2a02:26f0:d2:280::2d3e, 2a02:26f0:d2:296::2d3e, 23.40.218.189
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2a02:26f0:d2:280::2d3e|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516304289_6e7f201fb7eb1023c58104b7dd4cdec1 [following]
Connecting to download.oracle.com (download.oracle.com)|104.104.142.192|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-18 19:36:10 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of default-jdk-headless:
default-jdk-headless depends on openjdk-8-jdk-headless; however:
Package openjdk-8-jdk-headless is not installed.
Package oracle-java8-installer which provides openjdk-8-jdk-headless is not configured yet.
dpkg: error processing package default-jdk-headless (
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk:
default-jdk depends on default-jdk-headless (= 2:1.8-56ubuntu2); however:
Package default-jdk-headless is not configured yet.
default-jdk depends on openjdk-8-jdk; however:
Package openjdk-8-jdk is not installed.
Package oracle-java8-installer which provides openjdk-8-jdk is not configured yet.
dpkg: error processing package default-jdk (
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
oracle-java8-installer
default-jdk-headless
default-jdk
E: Sub-process /usr/bin/dpkg returned an error code (1)
Somehow in /var/cache/oracle-jdk8-installer
there jdk-8u151-linux-x64.tar.gz
, and every time I try to install or even sudo apt-get autoremove
, it throws the above error.
The link in the error message that Ubuntu is trying to get from the JDK no longer exists on the Oracle website.
Things I tried:
Is there any way to change wget settings and make this install?
source
share