我想在我的系统上安装 JDK 7 和 8,并按照下面的帖子操作:
https://stackoverflow.com/questions/16263556/installing-java-7-on-ubuntu
但是现在,当我输入:
sudo apt-get install oracle-java7-installer
我面临以下错误:
sudo apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java7-installer is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
3 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-java7-installer (7u65+7u60arm-0~webupd8~2) ...
Downloading Oracle Java 7...
--2014-07-26 12:37:13-- http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 63.85.36.73, 63.85.36.40
Connecting to download.oracle.com (download.oracle.com)|63.85.36.73|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz [following]
--2014-07-26 12:37:15-- https://edelivery.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.73.246.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.73.246.140|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2014-07-26 12:37:18 ERROR 503: Service Unavailable.
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
Setting up oracle-java8-installer (8u11+8u6arm-1~webupd8~3) ...
Downloading Oracle Java 8...
--2014-07-26 12:37:19-- http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.216.11.120, 23.216.11.90
Connecting to download.oracle.com (download.oracle.com)|23.216.11.120|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz [following]
--2014-07-26 12:37:21-- https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.73.246.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.73.246.140|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2014-07-26 12:37:24 ERROR 503: Service Unavailable.
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
dpkg: dependency problems prevent configuration of oracle-java7-set-default:
oracle-java7-set-default depends on oracle-java7-installer; however:
Package oracle-java7-installer is not configured yet.
dpkg: error processing package oracle-java7-set-default (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
oracle-java7-installer
oracle-java8-installer
oracle-java7-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
我认为我的问题来自错误 503,但我该如何修复它呢?此外,当我尝试安装另一个软件包时,我总是会遇到此消息。至少,我该如何摆脱这个消息。
谢谢
答案1
我也遇到了这个错误,我尝试访问 edelivery.oracle.com 网站查看那里是否存在问题,看起来存在:
从https://edelivery.oracle.com/download/index.html
您遇到了 Oracle 软件交付云的连接问题。请稍后重试访问此站点。如果您有任何问题,请联系软件交付客户服务部门:[电子邮件保护]。
虽然我找不到任何实际的状态消息,但自从大约一个小时前我开始尝试以来,情况一直如此。
编辑:它现在似乎已经重新上线(2014-07-26 10:00 UTC)。