Dependency problem on plain Ubuntu 20.04, might be upstream.

306 views
Skip to first unread message

Andreas K

unread,
Nov 10, 2020, 6:31:18 PM11/10/20
to Puppet Users

Hi all

I ran into a dependency problem on a (really) plain Ubuntu 20.04 system. Nothing else than openssh-server installed.

Installing and running puppet-agent on this freshly installed system, gave me an error.

I found:

systemA # /opt/puppetlabs/puppet/bin/puppet agent  --no-daemonize
/opt/puppetlabs/puppet/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/puppetlab                                                                   s/puppet/lib/libruby.so.2.5)

So I asked ldd:

systemA # ldd /opt/puppetlabs/puppet/bin/ruby
/opt/puppetlabs/puppet/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/puppetlabs/puppet/lib/libruby.so.2.5)
        linux-vdso.so.1 (0x00007ffcf61d5000)
        libruby.so.2.5 => /opt/puppetlabs/puppet/lib/libruby.so.2.5 (0x00007f0dba23d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0dba046000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0dba023000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0dba01d000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f0db9fe3000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0db9e94000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0dba50d000)

I asked dpkg:

systemA # dpkg -S /lib/x86_64-linux-gnu/libcrypt.so.1
libc6:amd64: /lib/x86_64-linux-gnu/libcrypt.so.1

Ok, libcrypt on systemA comes from libc6.

Now I ask the same on a machine, quite some software installed and puppet-agent working:

systemB # dpkg -S /lib/x86_64-linux-gnu/libcrypt.so.1
libcrypt1:amd64: /lib/x86_64-linux-gnu/libcrypt.so.1

Ok, let me cross check on both systems:

systemA # dpkg -l | grep libcrypt1
nothing...

systemB # dpkg -l | grep libcrypt1
ii  libcrypt1:amd64                            1:4.4.10-10ubuntu4                  amd64        libcrypt shared library

On systemB some other software required the library and it was installed.

Somewhere in the dependency tree of puppet-agent should be an entry for libcrypt1.

Is anyone deep enough in to decide wether this is a ruby problem or a a puppet problem?

Best
Andreas
Reply all
Reply to author
Forward
0 new messages