[Aptitude-devel] Bug#670080: aptitude: dpkg --configure not properly called for multiarch packages

Ralf Jung post at ralfj.de
Sun Apr 22 21:12:35 UTC 2012


Package: aptitude
Version: 0.6.6-1+b1
Severity: normal

Dear Maintainer,

Some weeks ago, I added a foreign architecture to my amd64 test system and
installed some basic i386 libraries.
Today I did a full system upgrade using aptitude (u, U, g, g) which pulled a
lot of packages - I do not boot this system very often, so this was to be
expected. During the system upgrade, the following error was shown:

>>> quote begin <<<
De-configuring libc6:amd64 ...
Unpacking replacement libc6:i386 ...
Preparing to replace libc6:amd64 2.13-27 (using .../libc6_2.13-30_amd64.deb) ...
Unpacking replacement libc6:amd64 ...
dpkg: error: --configure needs a valid package name but 'libc6' is not: ambiguous package name 'libc6' with more than one installed instance                                                    
                                                                                                                                                                                                
Type dpkg --help for help about installing and deinstalling packages [*];                                                                                                                       
Use `dselect' or `aptitude' for user-friendly package management;                                                                                                                               
Type dpkg -Dhelp for a list of dpkg debug flag values;                                                                                                                                          
Type dpkg --force-help for a list of forcing options;                                                                                                                                           
Type dpkg-deb --help for help about manipulating *.deb files;                                                                                                                                   
                                                                                                                                                                                                
Options marked [*] produce a lot of output - pipe it through `less' or `more' !                                                                                                                 
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.  Trying to recover:
>>> quote end <<<

The remaining upgrade was canceled and the aptitude GUI was shown again. I then
tried to install the updates again, which worked fine, showing the same error
for libx11-6. However, the upgrade was successfully completed after the 2nd
attempt.
I will attach the full output of both attempts.

It seems to me that in some places, aptitude is still calling dpkg without
properly qualifying the architecture of the affected package.

Kind regards,
Ralf Jung

-- Package-specific info:
Terminal: xterm
$DISPLAY not set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.6 compiled at Apr 16 2012 22:17:55
Compiler: g++ 4.6.3
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.10
  Ept support enabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20110404
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 =>  (0x00007fff6913a000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007f49306ee000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f49304bf000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f4930296000)
	libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007f4930091000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f492fd91000)
	libept.so.1.0.5.4.12 => /usr/lib/libept.so.1.0.5.4.12 (0x00007f492fb3e000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f492f741000)
	libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007f492f52b000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f492f283000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0x00007f492f06a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f492ee4e000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f492eb46000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f492e8c4000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f492e6ae000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f492e326000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f492e123000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f492df1f000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f492dd0e000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f492db09000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f492d900000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f4930a38000)

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  libapt-pkg4.12            0.9.2
ii  libboost-iostreams1.49.0  1.49.0-2
ii  libc6                     2.13-30
ii  libcwidget3               0.5.16-3.2
ii  libept1.4.12              1.0.6.1
ii  libgcc1                   1:4.7.0-3
ii  libncursesw5              5.9-6
ii  libsigc++-2.0-0c2a        2.2.10-0.1
ii  libsqlite3-0              3.7.11-2
ii  libstdc++6                4.7.0-3
ii  libtinfo5                 5.9-6
ii  libxapian22               1.2.8-1
ii  zlib1g                    1:1.2.6.dfsg-2

Versions of packages aptitude recommends:
ii  apt-xapian-index                0.45
ii  aptitude-doc-en | aptitude-doc  <none>
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils                  0.0.6

Versions of packages aptitude suggests:
ii  debtags  <none>
ii  tasksel  3.09

-- no debconf information





More information about the Aptitude-devel mailing list