[Aptitude-devel] Bug#670668: aptitude: should not allow to select different versions for foreign packages

Yann Dirson ydirson at free.fr
Fri Apr 27 19:48:27 UTC 2012

Package: aptitude
Version: 0.6.6-1
Severity: important

I have installed foreign packages (but disabled the foreign source as
a temporary measure because of #670322.  But aptitude still lets me
select libc6:amd64 for upgrade, without considering that the existing
libc6:armel would prevent its configuration.

Maybe the problem has to be partly handled at the libapt level ?

On the next libc6 upgrade:

Setting up libc-bin (2.13-30) ...
(Reading database ... 438878 files and directories currently installed.)
Preparing to replace libc6:amd64 2.13-27 (using .../libc6_2.13-30_amd64.deb) ...
De-configuring libc6:armel ...
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:
dpkg: error processing libc6:amd64 (--configure):
 package libc6:amd64 2.13-30 cannot be configured because libc6:armel is at a different version (2.13-27)
dpkg: error processing libc6:armel (--configure):
 package libc6:armel 2.13-27 cannot be configured because libc6:amd64 is at a different version (2.13-30)

-- Package-specific info:
Terminal: screen
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.6 compiled at Mar 27 2012 22:36:24
Compiler: g++ 4.6.3
Compiled against:
  apt version 4.10.1
  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.10.1

aptitude linkage:
	linux-vdso.so.1 =>  (0x00007fffcc9ff000)
	libapt-pkg.so.4.10 => /usr/lib/libapt-pkg.so.4.10 (0x00007f31ec10d000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f31ebede000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f31ebcb5000)
	libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007f31ebab0000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f31eb7a8000)
	libept.so.1 => /usr/lib/libept.so.1 (0x00007f31eb54b000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f31eb14e000)
	libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007f31eaf38000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f31eac90000)
	libboost_iostreams.so.1.48.0 => /usr/lib/libboost_iostreams.so.1.48.0 (0x00007f31eaa77000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f31ea85b000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f31ea553000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f31ea2d1000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f31ea0bb000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f31e9d33000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f31e9b30000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f31e992c000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f31e9726000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f31e9516000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f31e930d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f31ec450000)

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

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

Versions of packages aptitude depends on:
ii  apt [libapt-pkg4.10]
ii  libboost-iostreams1.48.0  1.48.0-3
ii  libc6                     2.13-30
ii  libcwidget3               0.5.16-3.1
ii  libept1                   1.0.5
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  1.9
ii  tasksel  3.09

-- no debconf information

More information about the Aptitude-devel mailing list