[Aptitude-devel] Bug#822331: "E: Cannot remove aptitude within aptitude" on multi-arch

Christian Klein dvlohp at gmail.com
Sat Apr 23 13:48:53 UTC 2016

Package: aptitude
Version: 0.8-1
Severity: normal

>From time to time, I invoke a "purge" (_ key) on the "Not Installed Packages"
section in aptitude to remove any config data for packages that were removed
but not purged.
With aptitude in unstable, this gives an error "E: Cannot remove aptitude
within aptitude". With aptitude in testing (0.7.5-3), this is not the case.

I guess this is triggered by the fact that I have multi-arch configured to use
i386 and amd64 packages, and the "Not Installed Packages" section contains the
aptitude:i386 package (which, however, is obviously uninstalled, as I use the
aptitude:amd64 package).

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

aptitude version information:
aptitude 0.8
Compiler: g++ 5.3.1 20160409
Compiled against:
  apt version 5.0.0
  NCurses version 6.0
  libsigc++ version: 2.8.0
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.0.20160319
  cwidget version: 0.5.17
  Apt version: 5.0.0

aptitude linkage:
	linux-vdso.so.1 (0x00007ffc03eb9000)
	libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007f071cebe000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f071cc8e000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f071ca63000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f071c85c000)
	libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007f071c55f000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f071c264000)
	libboost_iostreams.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0 (0x00007f071c04a000)
	libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f071be31000)
	libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f071bc2c000)
	libxapian.so.22 => /usr/lib/x86_64-linux-gnu/libxapian.so.22 (0x00007f071b828000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f071b60b000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f071b28f000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f071af91000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f071ad7b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f071a9d6000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f071a7d3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f071a5cf000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f071a3b7000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f071a19c000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f0719f8c000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f0719d68000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f0719b56000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f071994d000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f0719748000)
	/lib64/ld-linux-x86-64.so.2 (0x00005643958d0000)

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (999, 'unstable'), (998, 'testing'), (990, 'stable'), (350, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages aptitude depends on:
ii  aptitude-common            0.8-1
ii  libapt-pkg5.0              1.2.10
ii  libboost-filesystem1.58.0  1.58.0+dfsg-5+b1
ii  libboost-iostreams1.58.0   1.58.0+dfsg-5+b1
ii  libboost-system1.58.0      1.58.0+dfsg-5+b1
ii  libc6                      2.22-7
ii  libcwidget3v5              0.5.17-4+b1
ii  libgcc1                    1:5.3.1-15
ii  libncursesw5               6.0+20160319-1
ii  libsigc++-2.0-0v5          2.8.0-1
ii  libsqlite3-0               3.12.2-1
ii  libstdc++6                 5.3.1-15
ii  libtinfo5                  6.0+20160319-1
ii  libxapian22v5              1.2.23-1

Versions of packages aptitude recommends:
ii  libparse-debianchangelog-perl  1.2.0-8
ii  sensible-utils                 0.0.9

Versions of packages aptitude suggests:
pn  apt-xapian-index                <none>
ii  aptitude-doc-en [aptitude-doc]  0.8-1
pn  debtags                         <none>
pn  tasksel                         <none>

-- no debconf information

More information about the Aptitude-devel mailing list