rpm database corrupt

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

 



Hi,
  I have a machine that has a corrup RPM database.
I tried the usual
  rm var/lib/rpm/__db.00*, then
  rpm --rebuilddb
which has worked in the past.
This time nothing.
Now I look after a lot of machines and they they all have the same RPM
configuration. So I decided to copy all of /usr/lib/rpm from one machine
to the machine with the corrup rpm database. I thought this might work,
and if it didn't I thought the usual fixabove would do it. No such luck.
Anybody any ideas?

Thanks in advance, and here's an example of how it gets stuck:

<1004-5>jove# rpm -Fvh -v -v -v -v rsync-2.5.7-0.8.i386.rpm
D: ============== rsync-2.5.7-0.8.i386.rpm
D: Expected size:       144051 = lead(96)+sigs(344)+pad(0)+data(143611)
D:   Actual size:       144051
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Pubkeys rdonly mode=0x0
warning: rsync-2.5.7-0.8.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D:  read h#     305 Header V3 DSA signature: NOKEY, key ID db42a60e
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#     305 Header V3 DSA signature: NOKEY, key ID db42a60e
D:      added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ rsync-2.5.7-0.8
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib
provides
)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib
provides
)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6                                     YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6(GLIBC_2.0)                          YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6(GLIBC_2.1)                          YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6(GLIBC_2.2)                          YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6(GLIBC_2.2.3)                        YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libc.so.6(GLIBC_2.3)                          YES (db provides)
D:  read h#     573 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libpopt.so.0                                  YES (db provides)
D:  read h#     499 Header V3 DSA signature: NOKEY, key ID db42a60e
D:  Requires: libresolv.so.2                                YES (db provides)
D: ========== --- rsync-2.5.5-1
D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Depends
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree,
depth)
D:     0    0    0    1    0 -rsync-2.5.5-1
D: ========== successors only (presentation order)
D:     1    0    0    0    0 +rsync-2.5.7-0.8
D: installing binary packages
D: closed   db index       /var/lib/rpm/Pubkeys
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Requirename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42

***gets stuck here****


-- 
Ross Macintyre (raz@xxxxxxxxxxxxx)


-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux