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仓库源之后就可以正常使用了

原文地址:http://blog.51cto.com/leoheng/2333620

时间: 2024-11-09 20:57:30

YUM报错解决:rpmdb open failed的相关文章

CentOS 关闭IPv6及运行yum报错解决办法

问题一:关闭IPv6 1.问题:使用yum下载东西的时候提示有一个IPv6的地址不可达,如下 http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/924f970f6436162727781050e63524af37f891ba57c8a374cdd0a87e53d89180-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:

友盟登录微信第三方登录报错解决linker command failed with exit code 1

:错误 Undefined symbols for architecture x86_64: "OBJC_CLASS$_UMSocialUtils", referenced from: objc-class-ref in libSocialWechat.a(UMSocialWechatHandler.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with ex

AS中一个报错解决:LoggedErrorException: Failed to run command初用Android Studio注意

Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\Android\android-sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output E:\开源学习\Canvas\app\build\intermediates\dex\d

解决yum报错:UnicodeDecodeError: 'ascii' codec can't decode ... ordinal not in range

在使用yum部署环境的时候,出现了报错: UnicodeDecodeError: 'ascii' codec can't decode ... ordinal not in range 解决办法: [[email protected] ~]# ll /var/lib/rpm/*db*-rw-r--r-- 1 root root 73728 Aug 15 14:52 /var/lib/rpm/__db.001-rw-r--r-- 1 root root 270336 Aug 15 14:52 /v

IDEA创建maven项目报错解决:Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already e

晚上用IDEA创建Java的maven项目时报错了: Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already exists in VFS1这个错误是因为之前我已经在这个文件夹里创建过同名的maven项目. 解决方法如下: 先把这个项目删了,然后把回收站中的这个项目和之前同名的项目一起彻底删除,重新创建一遍就不会报错了 IDEA创建maven项目报错解决:Failed to create a M

解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security

2018-07-02       21:43:13 Yum报错 [[email protected] yum.repos.d]# yum makecache Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Error: Cannot find a valid baseurl for repo: elasticsearch-6.x [[ema

安装MySQL-python报错error: command 'gcc' failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

zabbix源码安装流程及报错解决方法

zabbix源码安装流程及报错解决方法 一. zabbix的介绍 1) zabbix是什么 zabbix是一款基于web页面的.开源的.企业级的,支持分布式部署的监控软件. 2)2.zabbix的作用 监控windows和Linux主机上的软硬件状态. 监控各网络设备,如路由器.交换机.防火墙.f5.打印机等. 支持邮件短信微信等平台发送告警通知. 通过web页面及图形展示监控数据. 3)zabbix的特性 由zabbix server和agent程序协同工作,还支持分布式监控,这时需要安装za

DRBD简介 安装、编译报错解决 DRBD的配置、初始化及同步

主机环境 redhat6.5 64位 实验环境 服务端1 ip 172.25.25.111 主机名:server1.example.com   drbd     服务端2 ip172.25.25.112   主机名:server2.example.com    drbd 安装包 drbd-8.4.3.tar.gz 防火墙状态:关闭   1.Debd的简介 1.基本信息:Distributed Replicated Block Device(DRBD)是一个用软件实现的.无共享的.服务器之间镜像块