LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-04-2017, 02:12 PM   #1
milomak
Member
 
Registered: May 2009
Posts: 147

Rep: Reputation: 18
Suspected Perl issue on my Debian Sid install (maybe debconf related)


So when I try to run a couple of commands
Code:
apt-file update
cpanm
cpan -u
My perl version
Code:
# 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:
# 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:
# 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:
# 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:
# 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:
# 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; 08-04-2017 at 02:17 PM.
 
Old 08-06-2017, 09:11 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
When you upgrade PERL via cpan you have to rebuild the modules that are not completely PERL code.
 
Old 08-09-2017, 08:20 AM   #3
milomak
Member
 
Registered: May 2009
Posts: 147

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by AwesomeMachine View Post
When you upgrade PERL via cpan you have to rebuild the modules that are not completely PERL code.
that's the problem. perl is updated via apt (from stable 5.24 to 5.26).

so for instance, the issue in the op I resolved by removing List::Utils
Code:
cpanm --uninstall List::Util
while I had downgraded back down to the perl version in stable version (I actually installed via dpkg - perl, perl-base and libperl5.24)

So when I upgraded again to 5.26, the ListUtil error was gone and replaced by
Code:
# cpanm 
vxs.c: loadable library and perl binaries are mismatched (got handshake key 0xdb80080, needed 0xde00080)
I have not been able to determine which library this relates to
 
Old 08-11-2017, 01:28 PM   #4
milomak
Member
 
Registered: May 2009
Posts: 147

Original Poster
Rep: Reputation: 18
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC akulaar Linux - Software 3 08-07-2012 11:30 PM
Debian package management - how are debconf and dpkg-deb related? austinium Debian 5 03-08-2010 05:25 AM
Debian Install Issue - Debconf loop cracka Debian 1 12-24-2005 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration