0

This question already has an answer here:

I am trying to install oracle-java8 on ubuntu18.04. I followed several tutorial but I keep getting:

E: Package 'oracle-java8-installer' has no installation candidate  

Here is how I get to that point:

 $  sudo apt-get purge openjdk-\*
 $  sudo apt autoremove
 $  sudo apt-get update
 $  sudo add-apt-repository ppa:webupd8team/java
 $  sudo apt-get update
 $  sudo apt-get install oracle-java8-installer

and this is the full output that I get runnig the last command:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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

Try looking for similar pkgs with:

apt-cache search oracle-java

gives me no results..

Can somebody help me out here?

marked as duplicate by N0rbert, Fabby, karel, Pilot6, kenn Sep 17 at 11:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.