RPM on linux 2.6.5

2004 May 14 at 00:41 » Tagged as :

I ran into another problem with the 2.6.5 kernel today. For the first time since upgrading to the 2.6.5 kernel I had to use an RPM. Unfortunately rpm -qa returned an error

error: db4 error1) from dbenv->open: Resource temporarily unavailable

error: cannot open Packages index using db3 - Resource temporarily unavailable (11)

error: cannot open Packages database in /var/lib/rpm

I consulted the mighty oracle (well the mightly oracle apparently uses mysql, (the mighty oracle as in the word and not as in the name) and one of the pages that I ran into suggested:

alias rpm='LD_ASSUME_KERNEL=2.2.5 rpm'

that it would fix it, and indeed it did. Apparently it's a bug in rpm. I guess it's now time to rpm -Uvh rpm-4.2.x