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

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Mon Apr 25 00:52:35 UTC 2016

Control: severity -1 minor
Control: tags -1 + moreinfo


2016-04-23 14:48 Christian Klein:
>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).

This was because some previous complaints saying that basically aptitude
shouldn't allow to remove itself, and errors caused if doing so.  I
think that it's a good idea to keep it.

Perhaps the error can be avoided in your use-case if remove/purge (and
thus, the error message) are only made effective in the case that the
package is not already removed/purged.

Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>

More information about the Aptitude-devel mailing list