我想下载并安装Java。我使用的命令是:

 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz


但是我最终收到以下错误。我该如何解决?

--2014-05-09 01:43:19--  http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
Resolving download.oracle.com... 165.254.202.218, 165.254.202.210
Connecting to download.oracle.com|165.254.202.218|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz [following]
--2014-05-09 01:43:19--  https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
Resolving edelivery.oracle.com... 23.6.118.140
Connecting to edelivery.oracle.com|23.6.118.140|:443... connected.
WARNING: certificate common name `www.oracle.com' doesn't match requested host name `edelivery.oracle.com'.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2014-05-09 01:43:19--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com|165.254.202.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `download-fail-1505220.html'

100%[===========================================================================================================================================================================>] 5,307       --.-K/s   in 0s

2014-05-09 01:43:19 (571 MB/s) - `download-fail-1505220.html' saved [5307/5307]

最佳答案

使用Cookie-oraclelicense = accept-securebackup-cookie

wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz

07-22 13:35