support@yourtech.us | Webmail |  DNS Login | *Billing* | cPanel | (814) 652-5358

Welcome to YourTech, LLC. If you are unfamiliar with this site, you may want to find out about my services, read my story, or you could simply be looking for a way to contact me. On this site, you will find a collection of technical musings, howto guides, and technical reference information.

Fixing the RPM Database

| No Comments | No TrackBacks
Occasionally, the RPM database on a system will become corrupt and need rebuilding.


If you get errors like this:

error: rpmdbNextIterator: skipping h#     834 Header V3 DSA signature: BAD, key ID db42a60e
error: rpmdbNextIterator: skipping h# 842 Header V3 DSA signature: BAD, key ID db42a60e
error: rpmdbNextIterator: skipping h# 850 Header V3 DSA signature: BAD, key ID db42a60e

The issue is caused by a bad GPG Key. Also note that this is a full-fledged way to rebuild the rpm database and the PubKeys.

cd /var/lib/rpm
rm __db.00[123]
mv Pubkeys Pubkeys.bad
wget http://www.redhat.com/security/db42a60e.txt
rpm --import db42a60e.txt
rpm --rebuilddb

No TrackBacks

TrackBack URL: http://www.yourtech.us/cgi-bin/mt/mt-tb.cgi/6

Leave a comment