Oracle JDK 16 无法安装

Oracle JDK 16 无法安装

这是在 Oracle Cloud 中的 VM 上运行的

我尝试从

add-apt-repository ppa:linuxuprising/java
apt install oracle-java16-installer 

执行完最后一条命令后,我得到了这个

HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://download.oracle.com/otn-pub/java/jdk/16.0.2+7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-aarch64_bin.tar.gz?AuthParam=1634908993_119442deecff850f20dade187cd946 [following]
--2021-10-22 13:21:13--  https://download.oracle.com/otn-pub/java/jdk/16.0.2+7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-aarch64_bin.tar.gz?AuthParam=1634908993_1                                                                                                    19442deecff850f20f0dade187cd946
Connecting to download.oracle.com (download.oracle.com)|23.66.96.32|:443... connected                                                                                                    .
HTTP request sent, awaiting response... 404 Not Found
2021-10-22 13:21:14 ERROR 404: Not Found.

download failed
Oracle JDK 16 is NOT installed.
dpkg: error processing package oracle-java16-installer (--configure):
 installed oracle-java16-installer package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 oracle-java16-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mc-server:/home/ubuntu#

我尝试过很多不同的指令,例如

apt-get install --reinstall packagename 
apt-get -f install
dpkg --remove --force-remove-reinstreq --dry-run
apt-get upgrade
dpkg --configure

他们似乎都没有采取任何有效的措施。

我也不知道该怎么办

答案1

ppa:linuxuprising/java是某人创建的 PPA。它包含一个尝试从 Oracle 下载 Java 的包。

您可以看到由于某种原因无法下载 Java。

您可以手动下载并根据 Oracle 手册进行安装,或者尝试联系 PPA 维护人员来解决此问题。

相关内容