安装Oracle JDK 1.7——404错误

安装Oracle JDK 1.7——404错误

我正在尝试安装 Hadoop 2.7.3。在 Elementary OS(我相信是 Ubuntu)上按照建筑.txtHadoop 文件附带的。

该文件表明我需要通过以下步骤安装 Oracle JDK 1.7:

$ sudo apt-get purge openjdk*
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer

一切正常,直到最后一步,它退出并显示一条错误消息,我不知道该怎么做(抱歉,如果粘贴太长;我很乐意编辑它,但不知道相关内容是什么):

--2017-05-26 10:58:06--  http://download.oracle.com/otn-pub/java/jdk/7u80-
b15/jdk-7u80-linux-x64.tar.gz Resolving download.oracle.com
(download.oracle.com)... 199.117.103.169, 199.117.103.171

Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected. HTTP request
sent, awaiting response... 302 Moved Temporarily Location:
https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz

[...]

[following]

--2017-05-26 10:58:06--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1495814405_54d4699c133b9ceee2666c152616ece6
Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected.

HTTP request sent, awaiting response... 404 Not Found 2017-05-26
10:58:07 ERROR 404: Not Found.

download failed

Oracle JDK 7 is NOT installed.

dpkg: error processing package oracle-java7-installer (--configure): 
subprocess installed post-installation script returned error exit
status 1 dpkg: dependency problems prevent configuration of
oracle-jdk7-installer:  oracle-jdk7-installer depends on
oracle-java7-installer; however:   Package oracle-java7-installer is
not configured yet.

我估计

  • 404 是主要问题 - 它正在寻找文件但找不到它们

所以我的问题是

  • 这是真的吗?这里的障碍是什么?

  • 我该如何解决它,或者我必须走另一条路?

(我正在关注白Hadoop - 权威指南以了解整体方法。)

答案1

正如@Jeff Schaller 所建议的,将我的评论移至答案中:有其他方法描述于askubuntu。我刚刚从以下位置下载了安装程序甲骨文档案您需要先为此设置一个免费帐户。然后手工安装。

相关内容