sudo apt-get install python-software-properties (sudo apt-get install --reinstall software-properties-common)
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
Solve missing /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
sudo dpkg —purge —force–depends ca–certificates–java
sudo apt–get install ca–certificates–java