报错如下:
[root@localhost ~]# rpm -qa |grep 'httpd'
rpmdb: Lock table is out of available locker entries
rpmdb: Unknown locker ID: e35
error: db4 error(22) from db->close: 无效的参数
error: cannot open Packages index using db3 - 无法分配内存 (12)
error: cannot open Packages database in /var/lib/rpm

解决方法:rm -rf /var/lib/rpm/__db*