PDA

View Full Version : rpm database problems


interactive
03-16-03, 08:20 AM
Figured this was the right forum. Anyways I just installed a fresh copy fof rh7.2 on one of my servers. Went to remove apache, mysql and php so I could build them from source. Went good until I went to install libxml2. I removed the old version and attempted to install the new. I got a Segmentation fault, and now every time I try to install or upgrade a RPM I get this. Reinstalling is a option but one I want to avoid. I've tried rpm -v -v --rebuilddb and I get no errors. Any ideas on what to do?

StLHosting
03-18-03, 10:40 PM
hmm try this..

rm -f /var/lib/rpm/__db* this would fix any locked files, fix the damage that was left behind then
rpm -vv --rebuilddb repair it the db, nothing else might try reinstalling the rpmdb... about as close as my rpm knowledge gets :)

see if this helps you any
http://www.informatimago.com/linux/rpm-rebuilddb

interactive
03-21-03, 05:45 PM
dang. About 4 hours ago, I moved everything off of the server and reinstalled redhat (first nts install I ever did, pretty fun). Anyways thanks for the info. I added the link to my fav's, I'm sure (hope not though) this won't be the last time this happens to me.