[Aptitude-devel] Bug#716992: aptitude does not purge deleted packages when it asks for user confirmation

Uwe Storbeck uwe at ibr.ch
Mon Jul 15 17:07:08 UTC 2013


Package: aptitude
Version: 0.6.8.2-1
Severity: normal

Dear Maintainer,

I have set APT::Get::Purge and Aptitude::Purge-Unused to true.
Aptitude normally honors these settings when it (auto-)deletes
packages.

But when aptitude runs into a situation where it has to ask the user
for confirmation (e.g. when it has to delete other packages because
of conflicts or dependencies) it ignores these settings and only
deletes the packages without purging the config files.


Example:

# aptitude install cups-bsd
The following NEW packages will be installed:
  cups-bsd{b} [1.6.2-10] <+71.7 kB>
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.2 kB of archives. After unpacking 71.7 kB will be used.
The following packages have unmet dependencies:
 cups-bsd : Conflicts: lpr but 1:2008.05.17+nmu1 is installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     lpr

Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  cups-bsd [1.6.2-10] <+71.7 kB>
The following packages will be REMOVED:
  lpr{a} [1:2008.05.17+nmu1] <-418 kB>
     ^^^
0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 29.2 kB of archives. After unpacking 346 kB will be freed.
Do you want to continue? [Y/n/?] _lpr
The following NEW packages will be installed:
  cups-bsd [1.6.2-10] <+71.7 kB>
The following packages will be REMOVED:
  lpr{ap} [1:2008.05.17+nmu1] <-418 kB>
     ^^^^
0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 29.2 kB of archives. After unpacking 346 kB will be freed.
Do you want to continue? [Y/n/?]


Aptitude should automatically set lpr to "purge" and not force me
to do it manually.

Regards

Uwe


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

aptitude version information:
aptitude 0.6.8.2 compiled at Nov  5 2012 06:20:41
Compiler: g++ 4.7.2
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.20130608
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-gate.so.1 (0xf773d000)
	libapt-pkg.so.4.12 => /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12 (0xf71b1000)
	libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xf717e000)
	libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xf715c000)
	libsigc-2.0.so.0 => /usr/lib/i386-linux-gnu/libsigc-2.0.so.0 (0xf7157000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0xf7057000)
	libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0xf6fc4000)
	libxapian.so.22 => /usr/lib/sse2/libxapian.so.22 (0xf6dde000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf6dc4000)
	libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xf6d0e000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0xf6cf8000)
	libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf6cdd000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6bef000)
	libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf6bab000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf6b8f000)
	libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf69df000)
	libutil.so.1 => /lib/i386-linux-gnu/i686/cmov/libutil.so.1 (0xf69db000)
	libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf69d6000)
	libbz2.so.1.0 => /lib/i386-linux-gnu/libbz2.so.1.0 (0xf69c4000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf69be000)
	librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xf69b5000)
	/lib/ld-linux.so.2 (0xf773e000)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (750, 'testing'), (650, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

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

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.8.2-1
ii  libapt-pkg4.12            0.9.8.2
ii  libboost-iostreams1.49.0  1.49.0-4
ii  libc6                     2.17-7
ii  libcwidget3               0.5.16-3.4
ii  libept1.4.12              1.0.9
ii  libgcc1                   1:4.8.1-2
ii  libncursesw5              5.9+20130608-1
ii  libsigc++-2.0-0c2a        2.2.10-0.2
ii  libsqlite3-0              3.7.17-1
ii  libstdc++6                4.8.1-2
ii  libtinfo5                 5.9+20130608-1
ii  libxapian22               1.2.15-2
ii  zlib1g                    1:1.2.8.dfsg-1

Versions of packages aptitude recommends:
ii  apt-xapian-index                0.45
ii  aptitude-doc-en [aptitude-doc]  0.6.8.2-1
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils                  0.0.9

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

-- no debconf information



More information about the Aptitude-devel mailing list