Red Hat Bugzilla – Bug 14090
Problems converting database
Last modified: 2008-05-01 11:37:56 EDT
I have just updates the rpm-packages to rpm-4.0-.0-45. After having done
this two things happens:
1. I am told that there is a db1 database in /var/lib/rpm/packages.rpm, and
that it shall be converted to db3 format using the rpm --rebuild command.
No matter how many times I run this command the message still pops up.
2. When I try to run rpm -q <whatever> I get the message in the above + a
message: Segmentation fault (core dumped)
What to do?
Look at /var/lib/rpm. The larger of the two files Packages (db3 format) and
packages.rpm (db1 format) is your rpm database. If packages.rpm is the smaller
file, remove all of the *.rpm files.
If Packages is the smaller file, remove just Packages, and rebuild again.
Meanwhile, you should upgrade your version of rpm. Try rpm-4.0 packages from
ftp://ftp.rpm.org/pub/rpm/test for the latest (Raw Hide is probably behind the
times at the moment).
Hi again. Now I have tried to delete Packages and rebuild a couple of times and
still it doesn't work. I wonder if there could be anything wrong with the rpm i
used to make my last upgrade? (rpm-4.0-0.45.i386.rpm)
I have now downloaded rpm-4.0-0.55.i386.rpm, is it believable that it will be
better? And how could I run it? As it is now I can't do anything.... Can I
return to mu previous rpm-version without troubles?