installing puppetdb on Debian 6 [wheezy]

140 views
Skip to first unread message

Peter Berghold

unread,
May 20, 2014, 3:22:24 PM5/20/14
to puppet...@googlegroups.com
Hi folks,

Attempting to install puppetdb on Debian 6 and have run into a bit of a roadblock.

It's complaining that java7 is not on the system and yet:

:/usr/lib/jvm# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

I suppose it is looking for a packaged called j2re1.7 or java7-runtime-headless.  Any way of faking this out so it works with the Oracle version?



--

Peter L. Berghold                       Salty....@gmail.com

http://blog.berghold.net

Christopher Wood

unread,
May 20, 2014, 3:41:50 PM5/20/14
to puppet...@googlegroups.com
What's the error message?
> Peter L. Berghold                       [1]Salty....@gmail.com
>
> [2]http://blog.berghold.net
>
> --
> 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 [3]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [4]https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com.
> For more options, visit [5]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:Salty....@gmail.com
> 2. http://blog.berghold.net/
> 3. mailto:puppet-users...@googlegroups.com
> 4. https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com?utm_medium=email&utm_source=footer
> 5. https://groups.google.com/d/optout

Peter Berghold

unread,
May 20, 2014, 3:50:51 PM5/20/14
to puppet...@googlegroups.com
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 puppetdb : Depends: java7-runtime-headless but it is not installable or
                     j2re1.7 but it is not installable
E: Broken packages



To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140520194150.GA9787%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Christopher Wood

unread,
May 20, 2014, 4:33:51 PM5/20/14
to puppet...@googlegroups.com
In your situation, I'd file a bug with puppetlabs about this, at least because this makes puppetdb not trivially installable in squeeze. From the control files for the last two puppetdb packages:

Package: puppetdb
Version: 2.0.0-1puppetlabs1
Architecture: all
Maintainer: Puppet Labs <in...@puppetlabs.com>
Installed-Size: 24176
Depends: java7-runtime-headless | j2re1.7, adduser, puppet (>= 2.7.12)

Package: puppetdb
Version: 1.6.3-1puppetlabs1
Architecture: all
Maintainer: Puppet Labs <in...@puppetlabs.com>
Installed-Size: 23732
Depends: java7-runtime-headless | j2re1.7 | java6-runtime-headless, adduser, puppet (>= 2.7.12)

That said, openjdk-7-jre-headless exists in wheezy (provided by openjdk-7-jre-headless) and you'll probably do less work if you build your hosts in wheezy. I personally would go for the less-work version.

Apart from that, you could try one of these:

create and install a stub java7-runtime-headless deb just to get it in the installed packages list
use apt pinning to install an earlier puppetdb (but http://docs.puppetlabs.com/puppetdb/latest/puppetdb-faq.html#which-versions-of-java-are-supported if you have issues later)
import openjdk-7-jre-headless and dependencies from wheezy to your squeeze repo and see if it installs/functions cleanly
repackage puppetdb without that dependency (now I'm getting ridiculous)
> [1][2]Salty....@gmail.com
> >
> >    [2][3]http://blog.berghold.net
> >
> >    --
> >    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 [3][4]puppet-users...@googlegroups.com.
> >    To view this discussion on the web visit
> >  
>  [4][5]https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com.
> >    For more options, visit [5][6]https://groups.google.com/d/optout.
> >
> > References
> >
> >    Visible links
> >    1. mailto:[7]Salty....@gmail.com
> >    2. [8]http://blog.berghold.net/
> >    3. mailto:[9]puppet-users...@googlegroups.com
> >    4.
> [10]https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com?utm_medium=email&utm_source=footer
> >    5. [11]https://groups.google.com/d/optout
> --
> 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 [12]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [13]https://groups.google.com/d/msgid/puppet-users/20140520194150.GA9787%40iniquitous.heresiarch.ca.
> For more options, visit [14]https://groups.google.com/d/optout.
>
> --
>
> Peter L. Berghold                       [15]Salty....@gmail.com
>
> [16]http://blog.berghold.net
>
> --
> 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 [17]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [18]https://groups.google.com/d/msgid/puppet-users/CAArvnv33Ydf%2Bt3EFdyXg-398qTcH-j3_TfdKjY2Sy1HMZVPctQ%40mail.gmail.com.
> For more options, visit [19]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:christop...@pobox.com
> 2. mailto:Salty....@gmail.com
> 3. http://blog.berghold.net/
> 4. mailto:puppet-users%2Bunsu...@googlegroups.com
> 5. https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com
> 6. https://groups.google.com/d/optout
> 7. mailto:Salty....@gmail.com
> 8. http://blog.berghold.net/
> 9. mailto:puppet-users%2Bunsu...@googlegroups.com
> 10. https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com?utm_medium=email&utm_source=footer
> 11. https://groups.google.com/d/optout
> 12. mailto:puppet-users%2Bunsu...@googlegroups.com
> 13. https://groups.google.com/d/msgid/puppet-users/20140520194150.GA9787%40iniquitous.heresiarch.ca
> 14. https://groups.google.com/d/optout
> 15. mailto:Salty....@gmail.com
> 16. http://blog.berghold.net/
> 17. mailto:puppet-users...@googlegroups.com
> 18. https://groups.google.com/d/msgid/puppet-users/CAArvnv33Ydf%2Bt3EFdyXg-398qTcH-j3_TfdKjY2Sy1HMZVPctQ%40mail.gmail.com?utm_medium=email&utm_source=footer
> 19. https://groups.google.com/d/optout

Ken Barber

unread,
May 20, 2014, 8:24:12 PM5/20/14
to Puppet Users
The control file was modified in particular to be compatible with the
make-jpkg created packages to work around older releases like Debian 6
squeeze:

https://wiki.debian.org/JavaPackage

Unfortunately this was the closest we could find to a standard way of
supporting a dependency against a Debian 6 built JDK 7 package. Its
unfortunate openjdk 7 was never back-ported to squeeze, but these
decisions are beyond us mere mortals.

So as long as your package is built using the standard make-jpkg
instructions, this should work for you. In our tests we've created a
repo of a make-jpkg package for ourselves and it adequately works
during our acceptance tests, so it should work for others in theory -
(unless the package name was customised I suppose).

If it doesn't work, provide the details of the created package and
I'll take a look.

ken.
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAArvnv07%3DfCFnUfJ1LAZUjpHbVYXYx_0PQSCJZgqOpGg1pLM1A%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages