使用yum时报错:rpmdb: unable to join Fix Corrupted Packages Database for YUM

https://blog.csdn.net/ys5773477/article/details/53814581

报错:

[root@iZ2535el0z8Z /]# yum
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

原因:rpm的数据库被损坏了

解决办法:重建rpmdb数据库

> rpm --rebuilddb

> yum clean all

>yum update

如果在rpm --rebuilddb时,报错space不足,此时可以清理/var/log目录下的所有文件,在重新执行rebuild操作

执行完后,就可以使用yum 安装软件了

 

报错:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

 修改yum 源 cd /etc/yum.repo.d/ 

你可能感兴趣的:(linux)