Re: [FC4]: both RPM and YUM crash with errors on FC4 after upgrade.

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

 



Gilbert Sebenste <sebenste <at> weather3.admin.niu.edu> writes:
> 
> I'm having a serious problem here, and I hope somebody can help.
> 
> On March 30, I upgraded to the latest version of RPM. That broke yum, by 
> giving me lots of errors. SO, to fix it, I downloaded the latest RPMs for 
> RPM again...
> 

How did you do the upgrade?

> rpm-build-4.4.1-23.i386.rpm
> rpm-devel-4.4.1-23.i386.rpm
> rpm-libs-4.4.1-23.i386.rpm
> rpm-python-4.4.1-23.i386.rpm
> rpm-4.4.1-23.i386.rpm
> 
> and did a
> 
> rpm -ivh --force rpm*.rpm
> 

You didn't want to do "-i".  That installs the new version without removing the
old one.  You almost certainly now have two rpm packages installed.  If you
could do "rpm -q" you would see them.

> Well, now all I get when I type rpm anything is:
> 
> %rpm --rebuilddb
> 
> rpmdb: Program version 4.3 doesn't match environment version
> error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database 
> environment version mismatch
> error: cannot open Packages index using db3 -  (-30974)
> 

First, do "rpm --version" to see what version of rpm is trying to run.  And do
"file /var/lib/rpm/*" to see the version of Berkeley DB for the RPM database
(db4.3 is btreee version 9 and hash version 8).

My guess is that there is a version mismatch between rpm and berkeley db,
probably because of old versions.  It is  suspicious that it is trying to use
db3 since FC4 only used db 4.3 and doesn't even have db3 available.

> OK. Yum and now RPM are useless on my system. Now what? How can I get this 
> working again? What do I have to reinstal, and how?
> 

Reinstalling the whole OS is probably the best option.  You may also be able to
upgrade from the CDs.

Try seeing what /lib/libdb*, /usr/lib/librpm*, /usr/bin/rpm exist.  Try moving
the old versions out of the way and see if that fixes the problem.  Try moving
the new versions out of the way and see if that fixes the problem.  If you do
get rpm working, remove the duplicate packages.

 - Ian



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux