(原文链接:https://almirai.live/Coding/Java/ppa-install-oracle-java-11/)[https://almirai.live/Coding/Java/ppa-install-oracle-java-11/]
添加源
Ubuntu/Mint 64bit
sudo add-apt-repository ppa:linuxuprising/java
Debian 64bit
su -
echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/linuxuprising-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A
安装
apt-get update
apt-get install oracle-java11-installer