YUM报错解决:rpmdb open failed
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了YUM报错解决:rpmdb open failed相关的知识,希望对你有一定的参考价值。
yum安装某个软件的时候,出现报错
[[email protected] ~]# yum install -y zabbix-agent
rpmdb: unable to join the environment
error: db3 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed 《===###报错啦
.
.
.
解决报错:
[[email protected] ~]# cd /var/lib/rpm/
[[email protected] rpm]# ls
Basenames Dirnames Installtid Packages Pubkeys Sha1header
Conflictname Filedigests Name Providename Requirename Sigmd5
__db.001 Group Obsoletename Provideversion Requireversion Triggername
[[email protected] rpm]# rm __db.* -rf ###删除rpm原始数据
[[email protected] rpm]# rpm --rebuilddb ###重建rpm数据
[[email protected] rpm]# yum clean all ###清除yum仓库缓存
Loaded plugins: presto, security
Cleaning repos: ultra-centos-6.8-base ultra-centos-6.8-extras ultra-centos-6.8-updates
: ultra-centos-6.x-glusterfs ultra-centos-6.x-java ultra-centos-6.x-ultrarepo
Cleaning up Everything
0 delta-package files removed, by presto
[[email protected] rpm]# yum update ###更新yum仓库源之后就可以正常使用了
以上是关于YUM报错解决:rpmdb open failed的主要内容,如果未能解决你的问题,请参考以下文章
yum提示Error rpmdb open failed错误的解决#yyds干货盘点#办法
yum提示Error rpmdb open failed错误的解决办法#yyds干货盘点#