使用yum提示Error: rpmdb open failed

devopsec 等级 976 0 0
标签: 运维开发

在centos系统上,在使用yum命令安装软件包时候报错:

rpmdb: Thread/process 6539/140448388269824 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

原因是RPM数据库被破坏

重建数据库后恢复正常:

cd /var/lib/rpm/
for i in `ls | grep 'db.'`;do mv $i $i.bak;done
rpm --rebuilddb
yum clean all

本文转自 https://blog.csdn.net/liuxiao723846/article/details/86470709,如有侵权,请联系删除。

收藏
评论区

相关推荐

使用yum提示Error: rpmdb open failed
在centos系统上,在使用yum命令安装软件包时候报错: rpmdb: Thread/process 6539/140448388269824 failed: Thread died in Berkeley DB library error: db3 error(30974) from dbenvfailchk: DB_RUNRECOVERY: F
ROS中遇到的一些问题和解决(更新)
检查 roscore 是否正常打开 ================= \[ERROR\] Failed to contact master at \[localhost:11311\]. Retrying... \[ERROR\] \[1446531999.044935824\]: \[registerPublisher\] Failed to con
SpringMVC通过@autowired自动装载Service时提示装载错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.spr
编译Linux
如题: scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory compilation terminated. scripts/Makefile.host:90: recipe for target 'scripts/ex
Virtualbox运行报make sure the kernel module has been
ERROR: Cannot access the kernel driver! Make sure the kernel module has been loaded successfully. Failed to open a session for the virtual machine Masonux. Virtual machine 'Maso
Golang 读写文件
读文件 func ReadFile_v1(filename string) { var ( err error content []byte ) fileObj,err := os.Open(filename) if err != nil {
K8S中Harbor使用Nginx反向代理无法获取image
**问题:Kubernetes创建Pod失败,无法获取image** Failed create pod sandbox: rpc error: code = Unknown desc = failed pulling image "harbor.od.com/public/pause:latest": Error response from daemon
Linux下java报错Too many open files的解决方法
最近发现运行在Linux下的java application报如下错误: java.io.IOException: Cannot run program "/bin/sh": java.io.IOException: error=24, Too many open files Caused by: java.io.IOException:
Mac自带PHP启动php
Mac 自带 php-fpm,在终端执行 php-fpm,会报如下错误: `ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2) ERROR: failed to load configuration file
Maven常见异常及解决方法
异常1: \[ERROR\] Failed to execute goal on project biz\_zhuhai: Could not resolve dependencies for project biz\_zhuhai:biz\_zhuhai:jar:0.0.1-SNAPSHOT: Failed to collect dependencies
MyBatis Generator报错:Cannot instantiate object of type
\[ERROR\] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project myssm: Execution default-cli of goal org.mybatis.gener
Spring Data JPA 常见异常
异常一: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Invocation of init method failed; nested exception is java
Starting rabbitmq
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err rabbitmq-server. invoke-rc.d: initscript rabbitmq-server, action "start" failed. dpkg:
springboot项目启动报错 url' attribute is not specified and no embedded datasource could be configured
报错相关信息: 2019-07-22 17:12:48.971 ERROR 8312 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO STA