解决rpmdb: Lock table is out of available locker entries问题。
来源:互联网 发布:淘宝秋装新款女装 编辑:程序博客网 时间:2024/06/06 19:42
解决rpmdb: Lock table is out of available locker entries问题
“rpmdb: Lock table is out of available locker entries...”的问题时, 你可以按照如下操作来修复它:
错误表现如下:
rpmdb: Lock table is out of available locker entries
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
操作之前请先备份 /var/lib/rpm :
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
去除rpm使用的BDB数据库:
rm /var/lib/rpm/__db.00*
重建立 rpm 使用的数据库,注意:此处可能需要一点时间:
rpm --rebuilddb
现在检查,看看 rpm 包是否一切正常:
rpm -qa | sort
为什么为发生这个问题呢?
其实当您用rpm命令后,rpm访问BDB数据库,首先会设置一个临时锁。如果在它运行时您用 control-c 中断它,或者是给它发了中断信号。那么rpm就很可能会出错误。因为这个临时锁还没有被释放呢。找到原因,相信您还可以找到其它的解决方法。
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问题。
- 解决rpmdb: Lock table is out of available locker entries问题。
- 解决rpmdb: Lock table is out of available locker entries问题。
- 解决rpmdb:Lock table is out of available locker entries问题
- 终极解决adb server is out of date问题
- 解决adb server is out of date问题
- 解决adb server is out of date. killing...问题
- 解决Out of memory问题
- MySQL解决[Err] 1206 - The total number of locks exceeds the lock table size问题
- 解决eclipse: Resource is out of sync with the file system 报错问题
- 解决eclipse中出现Resource is out of sync with the file system问题
- 解决eclipse: Resource is out of sync with the file system 报错问题
- 解决eclipse中出现Resource is out of sync with the file system问题
- 解决eclipse中出现Resource is out of sync with the file system问题
- 解决eclipse中出现Resource is out of sync with the file system问题
- 解决eclipse中出现Resource is out of sync with the file system问题0704
- 解决eclipse中出现Resource is out of sync with the file system问题
- 解决eclipse中出现Resource is out of sync with the file system问题
- 高效SQL语句必杀技
- js 几个小问题
- 深入浅出LDD-2-用户对模块的调用
- 日期Util类
- Web项目开发必备四重验证
- 解决rpmdb: Lock table is out of available locker entries问题。
- 在TOMCAT下配置工程的默认访问
- 【转】asp.net中如何退出整个框架(frameset ),回到登录界面?
- 源hbase集群中复制出HBase
- CentOS6.3下配置vsftpd,nginx通过http协议列出目录
- 用md5sum检验文件的一致性
- hdu 2544 最短路 图论-求两点之间的最短距离 Dijkstra
- x264中的cpu-a.asm
- hbase的内容查询