简体   繁体   中英

Getting issue "Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)" when I am running following command - $sudo add-apt-repository ppa:webupd8team/java

Getting issue "Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)" when I am running following command -

sudo add-apt-repository ppa:webupd8team/java

when I run

sudo apt-get install oracle-java8-installer

I get

Unable to locate package oracle-java8-installer

This was a change in Oracle JDL Licence agreement. https://launchpad.net/~webupd8team/+archive/ubuntu/java

I was setting up the Ubuntu VM machine on cloud. What should be a workaround?

If there is no specific reason to use JDK 8, you may try 11. Have you tried using PPA from linuxuprising ?

If JDK 11 works for you, you can use this:

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java11-installer

And for the JDK 12 you can use from the same source again ( here is the link ), or basically do this:

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java12-installer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM