[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#188364: apt should handle nonexistent cache directory gracefully



Package: apt
Version: 0.5.4
Severity: wishlist

A power outage caused my /var/cache/apt/archives to be trashed to the
point of nonexistence. After recovering, apt-get would not run until I
manually recreated both /var/cache/apt/archives and
/var/cache/apt/archives/partial. Since the loss of the data in these
directories is merely a performance issue, it might be a good idea to
make apt automatically recreate them and continue gracefully -- a warning
to the administrator about the data loss should suffice. Currently a slew
of error messages appears, as below:

E: Archive directory /var/cache/apt/archives/partial is missing.
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object

... * repeated for 3 screenfuls *

Reading Package Lists...
Building Dependency Tree...
33 packages upgraded, 0 newly installed, 0 to remove and 0  not
upgraded.
E: Could not open lock file /var/cache/apt/archives/lock - open (2 No
such file
+or directory)
E: Unable to lock the download directory


-- System Information
Debian Release: 3.0 with bunk-1 packages by Adrian Bunk <bunk@fs.tum.de>
Architecture: i386
Kernel: Linux wolverine 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8

Versions of packages apt depends on:
ii  libc6                  2.2.5-11.2        GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2 1:2.95.4-11woody1 The GNU stdc++ library




Reply to: