rpmdb: Lock table is out of available locker entries
If up2date throws some horrible Python errors and rpm says “rpmdb: Lock table is out of available locker entries”, you can restore your system to normality with the following:
The errors:
Make a backup of /var/lib/rpm in case you break something:
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
Remove the Berkeley databases that rpm uses:
Make rpm rebuild the databases from scratch (may take a short while):
Now, check rpm to make sure everything is okay:
Why does this happen?
When rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.
Update: As of February 2009, this post received five times the visits of my next most popular post. This situation must happen very often!
rpmdb: Lock table is out of available locker entries
If up2date throws some horrible Python errors and rpm says “rpmdb: Lock table is out of available locker entries”, you can restore your system to normality with the following:
The errors:
Make a backup of /var/lib/rpm in case you break something:
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
Remove the Berkeley databases that rpm uses:
Make rpm rebuild the databases from scratch (may take a short while):
Now, check rpm to make sure everything is okay:
Why does this happen?
When rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.
Update: As of February 2009, this post received five times the visits of my next most popular post. This situation must happen very often!
本文介绍了解决“rpmdb: Lock table is out of available locker entries”错误的方法。该问题通常发生在使用rpm命令并突然中断操作时。文章提供了详细的步骤,包括备份rpm数据库、删除Berkeley DB文件以及重建rpm数据库。

被折叠的 条评论
为什么被折叠?



