sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository pap:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
java -version 查看安装是否成功
安装后的idk在 usr/lib/jvm/java-8-oracle