Bug#77761: apt: after dselect install w/ apt method, apt cache is rarely autocleaned
Package: apt
Version: 0.3.19
Severity: normal
Hi,
I began to notice that rarely does apt remove upgraded .deb from
its cache after a dselect install. Here is a typescript that
shows this problem,
114 jsroot ~ # dselect
<update>
Hit http://ftp.digex.net potato/main Packages
[...]
Reading Package Lists... Done
Building Dependency Tree... Done
Merging Available information
Replacing available packages info, using /var/cache/apt/available.
Information about 4439 package(s) was updated.
<install>
Reading Package Lists... Done
Building Dependency Tree... Done
1 packages upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.
Need to get 38.6kB of archives. After unpacking 2048B will be
used.
Do you want to continue? [Y/n]
Get:1 http://security.debian.org potato/updates/main elvis-tiny 1.4-10 [38.6kB]
Fetched 38.6kB in 10s (3525B/s)
(Reading database ... 36262 files and directories currently
installed.)
Preparing to replace elvis-tiny 1.4-9 (using .../elvis-tiny_1.4-10_i386.deb) ...
Unpacking replacement elvis-tiny ...
Setting up elvis-tiny (1.4-10) ...
Reading Package Lists... Done
Building Dependency Tree... Done
Press enter to continue.
115 jsroot ~ # ls /var/cache/apt/archives/elvis-t*
/var/cache/apt/archives/elvis-tiny_1.4-10_i386.deb
/var/cache/apt/archives/elvis-tiny_1.4-9_i386.deb
116 jsroot ~ # cat /etc/apt/apt.conf
// /etc/apt/apt.conf - apt configuration file directives.
//
// See /usr/share/doc/apt/examples/configure-index.gz for details.
// Things that effect the APT dselect method
DSelect
{
Clean "auto"; // always|auto|prompt|never
// Options "-f";
// UpdateOptions "";
// PromptAfterUpdate "no";
}
// Pre-configure all packages before they are installed.
// (Automatically added by debconf.)
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
118 jsroot ~ #
what is weird is that sometimes upgraded packages _are_ deleted,
but this is happening more rarely as I do updates over time.
Thanks,
--
Jeff Sheinberg <jeffsh@erols.com>
-- System Information
Debian Release: 2.2
Kernel Version: Linux eden-hda7.my.local 2.2.17 #1 Mon Aug 28 20:29:19 EDT 2000 i586 unknown
Versions of the packages apt depends on:
ii libc6 2.1.3-13 GNU C Library: Shared libraries and Timezone
ii libstdc++2.10 2.95.2-13 The GNU stdc++ library
Reply to: