apt 命令后 oracle 安装程序出现错误

apt 命令后 oracle 安装程序出现错误

每当我执行命令日志apt-get installupdate命令日志之后,我都会收到额外的错误,提示oracle-java8-installer无法安装,这完全没有道理。以下是一个例子:

sudo apt-get install automake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
automake is already the newest version (1:1.15-4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 66 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 (8u151-1~webupd8~0) ...
Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc
Downloading Oracle Java 8...
--2018-02-18 20:16:16--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 2.18.76.99
Connecting to download.oracle.com (download.oracle.com)|2.18.76.99|: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]
--2018-02-18 20:16:16--  https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.86.54.138

Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.86.54.138|: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=1518977896_0b751d135285d8ae0d56692d56b93f4b [following]
--2018-02-18 20:16:16--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1518977896_0b751d135285d8ae0d56692d56b93f4b
Connecting to download.oracle.com (download.oracle.com)|2.18.76.99|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-02-18 20:16:17 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)

我试过

sudo add-apt-repository ppa:webupd8team/java ; sudo apt-get update

我也尝试删除 /var/cache/oracle-jdk8-installer/目录

相关内容