Bug 18159
| Summary: | rpm -rebuilddb doesn't do anything | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Don Beusee <don> | ||||
| Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.0 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2000-10-03 17:08:16 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Don Beusee
2000-10-03 00:09:09 UTC
Actually I think it was fstat64(). Shouldn't that be rpm --rebuilddb (note the two '-' characters), hopefully this will squash this bug quickly :) No such luck. I did use --rebuilddb (2 '-'s).
# rpm --rebuilddb
# rpm -q -a
#
Somehow it doesn't even complain any more that I need to rebuild.
Here is the strace for rpm --rebuilddb:
open("/var/lib/rpm/Packages", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(0x3, 0xbffff700) = 0
lseek(3, 0, SEEK_SET) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0a\25\6\0\7\0\0\0\0\20\0\0\0\10"..., 4096) =
4096
fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
open("/var/lib/rpmrebuilddb.2444/Packages", O_RDWR|O_CREAT|O_EXCL, 0644) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(0x4, 0xbffff670) = 0
lseek(4, 0, SEEK_SET) = 0
read(4, "", 256) = 0
stat64(0x8058a18, 0xbffff6a0) = 0
getpid() = 2444
time(NULL) = 970552740
close(4) = 0
stat64(0x400fc5dd, 0xbfffef60) = 0
brk(0x805c000) = 0x805c000
old_mmap(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x402b5000
open("/var/lib/rpmrebuilddb.2444/Packages", O_RDWR) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(0x4, 0xbffff6f0) = 0
lseek(4, 0, SEEK_SET) = 0
read(4, "", 4096) = 0
lseek(4, 0, SEEK_SET) = 0
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0a\25\6\0\7\0\0\0\0\20\0\0\0\10"..., 4096) =
4096
lseek(4, 8192, SEEK_SET) = 8192
write(4, "\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\2\0"..., 4096) =
4096
fsync(4) = 0
fcntl(4, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
brk(0x805e000) = 0x805e000
lseek(3, 4096, SEEK_SET) = 4096
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) =
4096
lseek(3, 8192, SEEK_SET) = 8192
read(3, "\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\2\0"..., 4096) =
4096
close(3) = 0
munmap(0x40272000, 274432) = 0
close(4) = 0
munmap(0x402b5000, 274432) = 0
stat64(0xbffffb00, 0xbffff930) = 0
rename("/var/lib/rpmrebuilddb.2444/Packages", "/var/lib/rpm/Packages") = 0
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
stat64(0xbffffb00, 0xbffff930) = -1 ENOENT (No such file or directory)
rmdir("/var/lib/rpmrebuilddb.2444") = 0
_exit(0) = ?
I left the system in this state in case you need more info.
BTW: file reports:
# file /var/lib/rpm/Packages
/var/lib/rpm/Packages: Berkeley DB 2.X Hash/Little Endian (Version 7, Logical
sequence number: file - 0, offset - 0, Bucket Size 4096, Overflow Point 2048,
Last Freed 0, Max Bucket 0, High Mask 0x0, Low Mask 0x0, Fill Factor 0, Number
of Keys 0)
#
If I re-install rpm 3.0.6, it will correctly be able to list all the packages I
have installed.
Created attachment 3690 [details]
how to resolve db1/db3 issues
I have resolved the problem. I removed Packages, installed the updated popt* packages, and re-ran rpm --rebuilddb and it worked. |