[root@cache1 ~]# yum install test
rpmdb:
Lock table is out of available locker entries
rpmdb:
Unknown locker ID: 2058
error: db4
error(22) from db->close: Invalid argument
error:
cannot open Packages index using db3 - Cannot allocate memory
(12)
error:
cannot open Packages database in /var/lib/rpm
Traceback
(most recent call last):
File "/usr/bin/yum", line 29, in
?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py",
line 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line
163, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File
"/usr/lib/python2.4/site-packages/yum/__init__.py", line 164, in
_getConfig
self._conf = config.readMainConfig(startupconf)
File
"/usr/lib/python2.4/site-packages/yum/config.py", line 685, in
readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot,
startupconf.distroverpkg)
File
"/usr/lib/python2.4/site-packages/yum/config.py", line 752, in
_getsysver
idx
= ts.dbMatch('provides', distroverpkg)
TypeError:
rpmdb open failed
[root@cache1 ~]# tar cvzf rpmdb-backup.tar.gz
/var/lib/rpm
tar:
Removing leading `/' from member names
/var/lib/rpm/
/var/lib/rpm/Name
/var/lib/rpm/Installtid
/var/lib/rpm/Pubkeys
/var/lib/rpm/Sha1header
/var/lib/rpm/Filemd5s
/var/lib/rpm/Dirnames
/var/lib/rpm/Group
/var/lib/rpm/__db.003
/var/lib/rpm/Sigmd5
/var/lib/rpm/Providename
/var/lib/rpm/Basenames
/var/lib/rpm/__db.001
/var/lib/rpm/Packages
/var/lib/rpm/Requirename
/var/lib/rpm/Requireversion
/var/lib/rpm/Provideversion
/var/lib/rpm/Conflictname
/var/lib/rpm/__db.002
/var/lib/rpm/Triggername
[root@cache1 ~]# rm -f /var/lib/rpm/__db.00*
[root@cache1 ~]# rpm –rebuilddb
[root@cache1 ~]# yum install test
base 100% |=========================| 1.1
kB 00:00
updates 100% |=========================| 1.9
kB 00:00
primary.sqlite.bz2 55%
|============= | 512 kB 00:01 ETA