[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sarge -> Lenny



Hi All,

apt-get dist-upgrade normally works a treat, but having used it lately to move from Etch to Lenny (after appropriate /etc/apt/sources.list changes) I encountered this ugly situation:

Preparing to replace indent 2.2.9-7 (using .../indent_2.2.9-9_i386.deb) ...
Errno architecture (i486-linux-gnu-thread-multi-2.6.22-3-amd64) does not match executable architecture (i486-linux-gnu-thread-multi-2.6.22.10) at /usr/local/share/perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/sbin/install-info line 308.
BEGIN failed--compilation aborted at /usr/sbin/install-info line 308.
dpkg: warning - old pre-removal script returned error exit status 9
dpkg - trying script from the new package instead ...
Errno architecture (i486-linux-gnu-thread-multi-2.6.22-3-amd64) does not match executable architecture (i486-linux-gnu-thread-multi-2.6.22.10) at /usr/local/share/perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/sbin/install-info line 308.
BEGIN failed--compilation aborted at /usr/sbin/install-info line 308.
dpkg: error processing /var/cache/apt/archives/indent_2.2.9-9_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 9
Errno architecture (i486-linux-gnu-thread-multi-2.6.22-3-amd64) does not match executable architecture (i486-linux-gnu-thread-multi-2.6.22.10) at /usr/local/share/perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/sbin/install-info line 308.
BEGIN failed--compilation aborted at /usr/sbin/install-info line 308.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
/var/cache/apt/archives/indent_2.2.9-9_i386.deb

This kept happening for any package that wanted to use install-info to (presumably) update the Info doc database - and that's a few packages when doing a full migration!

I'm presently working around this by commenting lines 11-13 in
/usr/local/share/perl/5.8.8/Errno.pm:

1 #
2 # This file is auto-generated. ***ANY*** changes here will be lost
3 #
4
5 package Errno;
6 our (@EXPORT_OK,%EXPORT_TAGS,@ISA,$VERSION,%errno,$AUTOLOAD);
7 use Exporter ();
8 use Config;
9 use strict;
10
11 #"$Config{'archname'}-$Config{'osvers'}" eq
12 #"i486-linux-gnu-thread-multi-2.6.22-3-amd64" or
13 # die "Errno architecture (i486-linux-gnu-thread-multi-2.6.22-3-amd64) does not match executable architectur$


...and clearly this isn't a solution at all. I feel distinctly uneasy with a workaround that out-uglies the original problem like this one.

Does anyone have any idea of what is actually going on here?


cheers,
cam


Reply to: