I would like to install Oracle Java 8 on my Ubuntu 18.04 using packages. I already added the apt-repository, but when trying to install it says package is not available. All I do is:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Then it says:
Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'oracle-java8-installer' has no installation candidate
Maybe the package has already been deleted and is not available now?