title: Puppet - Unable to locate package oracle-java8-installer
body: <p>I am installing <code>Java 8</code> in a Vagrant <strong><code>hashicorp/precise32</code></strong> machine using Puppet <a href="https://forge.puppetlabs.com/spantree/java8" rel="nofollow">spantree/java8</a> module. While installing I am getting below exception:</p>
  
  <pre><code>==&gt; default: Notice: /Stage[main]/Java8/File[/tmp/java.preseed]/ensure: defined content as '{md5}1b89c67b59fa03a9210a7b22a6b51b92'
  ==&gt; default: Notice: /Stage[main]/Apache/Package[apache2]/ensure: ensure changed 'purged' to 'present'
  ==&gt; default: Notice: /Stage[main]/Java8/Apt::Ppa[ppa:webupd8team/java]/Exec[add-apt-repository-ppa:webupd8team/java]/returns: executed successfully
  ==&gt; default: Notice: /Stage[main]/Java8/File[/etc/profile.d/set_java_home.sh]: Dependency Package[oracle-java8-installer] has failures: true
  ==&gt; default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install oracle-java8-installer' returned 100: Reading package lists...
  ==&gt; default: Building dependency tree...
  ==&gt; default: Reading state information...
  ==&gt; default: E: Unable to locate package oracle-java8-installer
  ==&gt; default: Error: /Stage[main]/Java8/Package[oracle-java8-installer]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install oracle-java8-installer' returned 100: Reading package lists...
  ==&gt; default: Building dependency tree...
  ==&gt; default: Reading state information...
  ==&gt; default: E: Unable to locate package oracle-java8-installer
  ==&gt; default: Warning: /Stage[main]/Java8/File[/etc/profile.d/set_java_home.sh]: Skipping because of failed dependencies
  </code></pre>
  
  <p>I predict something wrong in <strong>line no. - 48</strong> in file <a href="https://github.com/Spantree/puppet-java8/blob/master/manifests/init.pp" rel="nofollow">init.pp</a>:</p>
  
  <pre><code>  ubuntu: {
        include apt
  
        apt::ppa { 'ppa:webupd8team/java': }
  
        package { 'oracle-java8-installer':
          responsefile =&gt; '/tmp/java.preseed',
          require      =&gt; [
            Apt::Ppa['ppa:webupd8team/java'],
            File['/tmp/java.preseed']
          ],
        }
  </code></pre>
  
  <p>Any idea how can I fix it?</p>
  
  <p>P.S: I am using <code>librarian-puppet</code> to download the <a href="https://forge.puppetlabs.com/spantree/java8" rel="nofollow">spantree/java8</a> module from <a href="https://forge.puppetlabs.com/" rel="nofollow">Puppet forge</a>.</p>