title: I am unable to install java8 on my ubuntu gcp machine
body: <p>I have tried with the commands </p>
  
  <pre class="lang-sh prettyprint-override"><code>sudo add-apt-repository ppa:webupd8team/java
  sudo apt-get update
  sudo apt install oracle-java8-installer
  </code></pre>
  
  <p>but after I could see that Java was not installed on my ubuntu machine. It hits the error like <code>unable to locate package oracle-java8-installer</code></p>
  
  <pre class="lang-none prettyprint-override"><code>sudo apt install oracle-java8-installer
  reading package lists...done
  Building dependency tree
  Reading state information...Done
  E:Unable to locate package oracle-java8-installer
  </code></pre>
  
  <p>How should I resolve this?</p>