yum命令提示error: rpmdb: BDB0113 Thread/process,解决方法

Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
sh -c ‘yum install -y -q yum-utils’
error: rpmdb: BDB0113 Thread/process 7689/140162110208064 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
CRITICAL:yum.main:
Error: rpmdb open failed

解决方法如下:

mv /var/lib/rpm/__db.00* /tmp/&&yum clean all

– 执行后会有如下提示:
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: epel extras os updates
Cleaning up list of fastest mirrors
接下来即可正常使用

发布者:小站,转转请注明出处:http://blog.gzcity.top/4838.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022年12月15日 10:15
下一篇 2023年2月15日 20:49

相关推荐

  • MySql 计算两个日期的时间差函数

    MySql计算两个日期的时间差函数 MySql计算两个日期的时间差函数TIMESTAMPDIFF用法:语法:TIMESTAMPDIFF(interval,datetime_expr1,datetime_expr2) 说明:返回日期或日期时间表达式datetime_expr1 和datetime_expr2the 之间的整数差。其结果的单位由interval …

    2022年12月15日
    17.3K43250
  • Git clone代码报“fatal: Out of memory, malloc failed (tried to allocate xxxx bytes)”的解决办法

    问题描述: 之前clone代码的时候一直没问题,今天clone代码的时候突然报错“fatal: Out of memory, malloc failed (tried to allocate 1058576000 bytes)”。 按报错的理解就是本机的内存不足了,查看了本机运行的服务和进程,没有可以停掉的服务和进程,那该怎么办呢? 查询资料都说的是因为GI…

    2023年3月21日
    10.9K15790
  • Python实战:用Selenium webdriver 爬取网页数据 webdriver,爬取隐私政策地址

    Python实战:用Selenium webdriver 爬取网页数据 webdriver,爬取隐私政策地址 import os.path import requests import sys import time from selenium import webdriver from bs4 import BeautifulSoup from flask…

    2023年6月2日
    15.8K1680
  • chrome怎么导入证书 chrome导入证书的图文步骤

    我们在使用谷歌浏览器时,有时需要导入证书,但是很多人不知道怎么操作,那么Google浏览器怎么导入证书呢,下面本文就介绍一下。 我的Chrome的版本是 1.首先,打开电脑上面的Google之后,点击浏览器右上角的“三个点”按钮,如图所示。 2.然后选择下拉菜单中的“设置”,进入Google的系统设置,如图所示。 3.进入Google的设置之后,点击&quo…

    2022年9月13日
    77710
  • springboot mybatis mysql迁移到达梦、人大金仓过程数据库遇到主键自增问题

    迁移后之前MYSql 主键自增,国产数据库如果你是用mybatis做insert,可能就遇到insert不了遇到如下异常:dm.jdbc.driver.DMException: 仅当指定列列表,SET IDENTITY_INSERT为ON时,才能对自增赋值 这种情况有两种方案:1、不改代码情况: 创建个序列(自增),然后使用触发器在insert前把主键字段重…

    2023年7月24日
    2.8K00

回复 Georgequinc

您的邮箱地址不会被公开。 必填项已用 * 标注

评论列表(751条)