Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Suspected Perl issue on my Debian Sid install

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

[Solved] Suspected Perl issue on my Debian Sid install

#1 Post by milomak »

So when I try to run a couple of commands

Code: Select all

apt-file update
cpanm
cpan -u
My perl version

Code: Select all

# perl -v

This is perl 5, version 26, subversion 0 (v5.26.0) built for x86_64-linux-gnu-thread-multi
(with 51 registered patches, see perl -V for more detail)
I get the following error

Code: Select all

# cpan -u
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb80080, needed 0xde00080)
#
ListUtil.c doesn't seem to exist

Code: Select all

# locate ListUtil.c
#
from the searching I have done, it seems cpan (or cpanm) is the favoured route to update the libraries. But of course this problem seems to be preventing me from running them.

Now I don't know if this is related, but I noticed all this when an update failed with a debconf error

Code: Select all

# dpkg -i /var/cache/apt/archives/debconf_1.5.63_all.deb
(Reading database ... 290546 files and directories currently installed.)
Preparing to unpack .../debconf_1.5.63_all.deb ...
Unpacking debconf (1.5.63) over (1.5.63) ...
Setting up debconf (1.5.63) ...
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb80080, needed 0xde00080)
dpkg: error processing package debconf (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 debconf

Code: Select all

# dpkg-reconfigure debconf
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb80080, needed 0xde00080)
Now this may have been my fault by installing it anyway even with a bug listed

Code: Select all

# apt-listbugs list debconf
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
grave bugs of debconf (→ ) <Outstanding>
 b1 - #709198 - debconf: should not use python in maintainer scripts
Summary:
 debconf(1 bug)
But another 2 sid installs I have are running the same version of debconf and they are fine so I am not sure if this is a red herring.

Any thoughts would be appreciated

edit - the one difference the install with an issue has is that I tried to install a musicbrainz server on it
Last edited by milomak on 2017-08-11 17:39, edited 1 time in total.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: Suspected Perl issue on my Debian Sid install (maybe deb

#2 Post by milomak »

so yes trying to install musicbrainz server was what was causing issues as this installed perl modules via cpanm

lessons learnt:
- i might be a user of 10+ years on sid, but that doesn't mean i should not be prepared for things going north
- given the above it's especially important to remember that most guides will be done with the view of a stable install
- i have to be very careful with perl especially as it introduces packages outside of apt

1. so because i am on sid, perl had upgraded from 5.24 to 5.26
2. downgraded to 5.24 (the version in stable) using dpkg
3. cpanm was then able to work and I removed List::Util - cpanm --uninstall List::Util
4. upgraded perl back to the sid version
5. had to repeat steps 2 to 4 a number of times as new perl modules showed up that were impacted
6. eventually got the system to a point where the debconf install completed and I could do a full system upgrade

edit:
- further to realising that this was related to trying to install musicbrainz,
- I deleted in root .cpan/ and .cpanm/
- and then in root, edited .bashrc to remove eval $( perl -Mlocal::lib )
- this seems to have solved the issue
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

Post Reply