Bug#1744: dpkg: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory
Here's an strace of dpkg failing. [Remember, this is on an empty
directory.]
Notice especially the line that reads:
readdir(4, 0x48000) = -1 ENOENT (No such file or directory)
I don't have a clue where that 0x48000 argument is coming from, but it
looks like it's corrupt....
uselib("/lib/ld.so") = 0
getuid() = 0
geteuid() = 0
getgid() = 0
getegid() = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=410, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
mmap(0, 410, PROT_READ, MAP_SHARED, 3, 0) = 0x40000000
close(3) = 0
uselib("/lib/libc.so.4.6.27") = 0
munmap(0x40000000, 410) = 0
munmap(0x62f00000, 20480) = 0
brk(0) = 0x2cae4
brk(0x2fae4) = 0x2fae4
brk(0x30000) = 0x30000
brk(0x31000) = 0x31000
umask(022) = 022
sysinfo({uptime=572, loads=[0, 864, 0] totalram=11497472, freeram=6713344, sharedram=2146304, bufferram=2777088} totalswap=0, freeswap=0, procs=13}) = 0
getuid() = 0
geteuid() = 0
access("/var/lib/dpkg", W_OK) = 0
open("/var/lib/dpkg/lock", O_RDWR|O_CREAT|O_TRUNC, 0660) = 3
fcntl(3, F_SETLK, {type=F_EXLCK, whence=SEEK_SET, start=0, len=0}) = 0
brk(0x32000) = 0x32000
brk(0x33000) = 0x33000
open("/var/lib/dpkg/status", O_RDONLY) = 4
read(4, "Package: vim\nStatus: unknown ok"..., 16384) = 16384
brk(0x44000) = 0x44000
brk(0x45000) = 0x45000
brk(0x46000) = 0x46000
read(4, "lled\nPriority: optional\nSectio"..., 16384) = 16384
brk(0x47000) = 0x47000
brk(0x48000) = 0x48000
read(4, "nknown ok not-installed\nPriorit"..., 16384) = 143
read(4, "", 16384) = 0
close(4) = 0
stat("/var/lib/dpkg/updates/", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/var/lib/dpkg/updates/", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
brk(0x49000) = 0x49000
readdir(4, {d_ino=7740688, d_name="."}) = 1
readdir(4, {d_ino=7740689, d_name=".."}) = 1
readdir(4, 0x48000) = -1 ENOENT (No such file or directory)
close(4) = 0
stat("/etc/locale/C/libc.cat", 0xbffff950) = -1 ENOENT (No such file or directory)
stat("/usr/lib/locale/C/libc.cat", 0xbffff950) = -1 ENOENT (No such file or directory)
stat("/usr/lib/locale/libc/C/usr/share/locale/C/libc.cat", 0xbffff950) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbffff950) = -1 ENOENT (No such file or directory)
write(2, "dpkg: cannot scan updates direct"..., 88dpkg: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory
) = 88
fcntl(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
_exit(2) = ?
--
Raul
Reply to: