sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
Set default java version
update-alternatives --config java
sudo add-apt-repository ppa:linuxuprising/java sudo apt install oracle-java11-installer-local sudo apt install oracle-java11-set-default