package 'oracle-java 10-installer' has no installation candidate code example
Example: e package 'oracle-java8-installer' has no installation candidate ubuntu 16.04
sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-jdk