Friday, May 2, 2008

Problem with rpmdb

Problem

rpm -qa | grep <package>
rpmdb: unable to join the environment
error: db4 error(11) 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



Solution:

Remove the existing db

#cd /var/lib/rpm
#rm -rf __db.*

Rebuild the db

#rpm --initdb
#rpm --rebuilddb

1 comment:

ian said...

i add your link also. thanks for the add. have a nice day.