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

By penoi on Friday, May 2, 2008 | | 1 comment
1 response to “Problem with rpmdb”
  1. ian says:

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