Package: aptitude
Version: 0.4.4-4
Severity: normal

I'm not sure this bug really belongs to aptitude.

when "aptitude update" is run while the network is unavailable (either
because ppp is off, or because a slow link is congested), it fails the
check of remote repositories, and as result the cached lists under
/var/lib/apt/lists are wiped away.
e.g., the apparently innocuous message

W: Couldn't stat source package list http://ftp.uk.debian.org etch/main Packages
(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages)
- stat (2 No such file or directory)
means that

/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages

(4+ MB compressed) has gone.

if one ran aptitude update only to check for updates (usually around a
few hundred of KB compressed) the result is a significant waste of time
and bandwidth.

I believe that "apt-get update" and "aptitude update" should not
remove/truncate the target files until they have successfully downloaded
their replacements.

in attachment, the output of "apt-config dump".

best regards,
        giuseppe

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.6.46.4-0.1      Advanced front-end for dpkg
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libgcc1                1:4.1.1-21        GCC support library
ii  libncursesw5           5.5-5             Shared libraries for terminal hand
ii  libsigc++-2.0-0c2a     2.0.17-2          type-safe Signal Framework for C++
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc 0.4.4-4    English manual for aptitude, a ter
pn  libparse-debianchangelog-perl <none>     (no description available)

-- no debconf information
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Get "";
APT::Get::List-Cleanup "false";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";

Reply via email to