Debian:Oracle Java 9(JDK9) - 无法找到包

时间:2016-06-02 13:45:38

标签: java debian openjdk

我想在Debian上安装Oracle Java 9(JDK9)。 我看了this

当我尝试

apt-get install oracle-java9-installer

我有这个错误:

E: Unable to locate package oracle-java9-installer

我试图通过以下方式解决我的问题:

add-apt-repository ppa:webupd8team/java

但是我收到了这个错误:

add-apt-repository: command not found

为了解决这个问题我读了this,我试过

apt-get install python-software-properties

apt-get install software-properties-common

2 个答案:

答案 0 :(得分:1)

答案:

我忘了添加

apt-get update

答案 1 :(得分:1)

添加PPA时得到以下更新-

  

更新:Oracle Java 9已到使用寿命:http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

,即使在apt-get update之后,我也无法找到包裹。因此,我猜测它不再可供安装。因此,请浏览最新的SE版本。

全文-

aniket@aniket-Compaq-610:~$ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for aniket: 
 Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.

Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html

Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.