ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2009年6月24日 星期三

rpmdb: Lock table is out of available locker entries

就是在 redhat 上 run yum command 出現的 error message:
$ sudo yum
rpmdb: Lock table is out of available locker entries
rpmdb: Unknown locker ID: bc0
error: db4 error(22) from db->close: 不適用的引數
error: cannot open Packages index using db3 - 無法配置記憶體 (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
這一篇 說,這是因為上次執行 yum 到一半被強制 kill,所以 lock file 沒有release。 解開的方法:
rm /var/lib/rpm/__db.00*
rpm --rebuilddb

沒有留言:

標籤

網誌存檔