error: rpmdb: BDB0113... rpm安装或尝查询时报错

image

等保要求安装杀毒软件,我跑脚本的时候发现异常退出了,一查芜湖,rpm管理包出问题了

root@VM_0_12_centos equal-protection]# rpm -g clamav
error: rpmdb: BDB0113 Thread/process 5113/140670318946368 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
package clamav is not installed
[root@VM_0_12_centos equal-protection]#

百度一下这个错误,表明rpm数据库出现了一些问题,可能是由于系统关机或其他未正常终止的操作引起的,使用 rpm --rebuilddb 命令来重建rpm数据库,再次运行rpm -q clamav来检查clamav软件包的状态。
image

_root@VM_o_12_centos equal-protection]# rpm --rebuilddb
[root@VM_0_12_centos equal-protection]# rpm -q clamav
package clamav is not installed
root@VM_0_12_centos equal-protection]#

ok解决

posted @ 2023-11-16 11:15  xiao智  阅读(225)  评论(0编辑  收藏  举报