Hi Milan,

In order to install oracle java you have to add third party repository, 
How you can do this you can do it read this article: 
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
If you want this to be part of the puppet catalog use puppetlabs-apt module 
to add it to the sources list

best regards,
Nickolay Kolev

06 юни 2014, петък, 23:17:20 UTC+3, Milan Simonović написа:
>
> Hi,
>
> puppet 3.6.1 on a vanilla trusty ubuntu server, trying to install 
> oracle-jdk:
>
>   class { 'java':
>
>     distribution => 'oracle-jdk',
>
>     version      => 'latest',
>
>   }
>
> exits with the following error:
>
>
> Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o 
> DPkg::Options::=--force-confold install oracle-j2sdk1.7' returned 100: 
> Reading package lists...
>
> Building dependency tree...
>
> Reading state information...
>
> E: Unable to locate package oracle-j2sdk1.7
>
> E: Couldn't find any package by regex 'oracle-j2sdk1.7'
>
> am I missing a source or what (puppetlabs.list is in 
> /etc/apt/sources.list.d/)?
>
> thanks,
> Milan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b2aff4c5-a9ce-4d52-9b50-4ace01fc9427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to