簡體   English   中英

在Ubuntu 14.04上安裝Java 7時出現HTTP錯誤404

[英]HTTP ERROR 404 while installing java 7 on Ubuntu 14.04

我試圖按照在Ubuntu上安裝Java 7的說明在Ubuntu 14.04上安裝Java 7

當我嘗試安裝Java 7時,出現HTTP 404錯誤。

有人知道是否仍然支持使用這些說明安裝Java 7嗎?

我是不是錯過了其他所有人都看不到的東西‽

預先感謝您的建議。

我按照說明執行了以下命令:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
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 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up oracle-java7-installer (7u67+7u60arm-0~webupd8~4) ...
Please report to author unsupported platform 'ppc64'.
Proceeding without web browser plugin support
Please report to author unsupported platform 'ppc64'.
Proceeding without web browser plugin support
Downloading Oracle Java 7...
--2014-09-01 16:26:08--  http://download.oracle.com/otn-pub/java/jdk/7u60-b19/
jdk-7u60-linux-.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.62.6.106, 23.62.6.153
Connecting to download.oracle.com (download.oracle.com)|23.62.6.106|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz [following]
--2014-09-01 16:26:09--  https://edelivery.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz
--2014-09-01 16:26:09--  https://edelivery.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 96.16.150.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|96.16.150.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz?AuthParam=1409603301_59d736536b051796a298904fd90f70bd [following]
--2014-09-01 16:26:09--  http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz?AuthParam=1409603301_59d736536b051796a298904fd90f70bd
Connecting to download.oracle.com (download.oracle.com)|23.62.6.106|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-01 16:26:10 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
E: Sub-process /usr/bin/dpkg returned an error code (1)

您收到404錯誤,表示找不到頁面。 看起來雖然建立了連接,但程序包管理器無法下載tar.gz文件。

如果是來自oracles網站的一些內部錯誤,則應重試。 但是,如果您落后於某些不允許該傳輸的代理,則您無能為力。

無論哪種方式嘗試做

wget http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-.tar.gz?AuthParam=1409603301_59d736536b051796a298904fd90f70bd

看看是否可以下載該文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM