title: Failed to fetch Java packages for oracle-java8-installer
body: <p>We have a Vagrant Debian box with the option of installing Java and Solr 6.6. This installation setup was working until last month. Now we can not install Java.</p>
  
  <p>Installation process:</p>
  
  <p><strong>java-8-debian.list</strong></p>
  
  <pre><code>deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
  deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
  </code></pre>
  
  <p>in our provision.sh file:</p>
  
  <pre><code>sudo cp /vagrant/provisioning/java-8-debian.list  /etc/apt/sources.list.d/java-8-debian.list;
  
  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886;
  
  sudo apt-get -qq update
  sudo apt-get install -qq -f -y python-software-properties software-properties-common debconf-utils unzip
  
  
  sudo debconf-set-selections &lt;&lt;&lt; "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true"
  </code></pre>
  
  <p><strong>Now we have an error:</strong></p>
  
  <pre><code>~$ sudo apt-get install -f -y 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 to fix or locate the package?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>we also try in terminal without -qq,  -f, -y, results are the same.</p>
  
  <pre><code>~$ sudo apt-get  update
  Hit http://ftp.hosteurope.de jessie InRelease
  Hit http://ftp.hosteurope.de jessie InRelease                                                                                                                                  
  Hit http://ppa.launchpad.net trusty InRelease                                                                                                                                  
  Hit https://packages.sury.org jessie InRelease                                                                                                                                 
  Hit https://deb.nodesource.com jessie InRelease                                                                                                                                
  Hit http://ftp.hosteurope.de jessie/main amd64 Packages                                  
  Hit http://security.debian.org jessie/updates InRelease                                  
  Hit http://ftp.hosteurope.de jessie/main i386 Packages                                   
  Hit http://ftp.hosteurope.de jessie/main ppc64el Packages                                                                                
  Hit http://ftp.hosteurope.de jessie/main amd64 Packages                                                                                                                                      
  Ign http://httpredir.debian.org jessie InRelease                                                                                                                                             
  Hit http://ftp.hosteurope.de jessie/main i386 Packages                                                                                                 
  Hit http://ppa.launchpad.net trusty/main Sources                                                                                 
  Hit https://packages.sury.org jessie/main amd64 Packages                                                                    
  Hit http://ftp.hosteurope.de jessie/main ppc64el Packages                                                                                   
  Hit http://ppa.launchpad.net trusty/main amd64 Packages                                                                   
  Hit https://deb.nodesource.com jessie/main Sources                       
  Hit https://deb.nodesource.com jessie/main amd64 Packages
  Hit http://httpredir.debian.org jessie Release.gpg 
  Hit http://security.debian.org jessie/updates/main Sources
  Hit http://security.debian.org jessie/updates/contrib Sources      
  Hit http://security.debian.org jessie/updates/main amd64 Packages                   
  Hit http://security.debian.org jessie/updates/contrib amd64 Packages  
  Hit http://httpredir.debian.org jessie Release
  Hit http://httpredir.debian.org jessie/main Sources
  Hit http://httpredir.debian.org jessie/contrib Sources
  Hit http://httpredir.debian.org jessie/main amd64 Packages
  Hit http://httpredir.debian.org jessie/contrib amd64 Packages
  Reading package lists... Done
  </code></pre>