Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
rpm database corrupt

rpm database corrupt

2003-12-05       - By Ross Macintyre

 Back
Reply:     1     2     3     4  

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 (See http://ync-2.ora-code.com).5.7-0.8.i386.rpm
D: ============== rsync-2 (See http://ync-2.ora-code.com).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 (See http://ync-2.ora-code.com).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 (See http://ync-2.ora-code.com).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 (See http://ync-2.ora-code.com).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 (See http://ync-2.ora-code.com).5.5-1
D: ========== successors only (presentation order)
D:     1    0    0    0    0 +rsync-2 (See http://ync-2.ora-code.com).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@(protected))