小编Ale*_*lig的帖子

yum 错误:rpmdb 打开失败

我正在尝试运行yum update,但出现此错误:

rpmdb: PANIC: fatal region error detected; run recovery
error: db3 error(-30974) from dbenv->open: 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:

Error: rpmdb open failed
Run Code Online (Sandbox Code Playgroud)

我查了一下页面这样的一个,但运行yum clean all运行相同的错误。

我该如何解决这个问题?

yum centos

56
推荐指数
1
解决办法
9万
查看次数

如何为 CentOS 7.3 添加默认 yum 存储库?

我已经在我的服务器上安装了 CentOs 7 并且由于一些未知的原因(至少是我)意识到,默认的 yum 存储库不起作用。

例如我试过yum install vim但得到

加载的插件:fastestmirror

配置的存储库之一失败(未知),并且 yum 没有足够的缓存数据来继续。在这一点上,yum 唯一可以做的安全事情就是失败。有几种方法可以“修复”这个问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the …
Run Code Online (Sandbox Code Playgroud)

yum centos repository

9
推荐指数
2
解决办法
12万
查看次数

标签 统计

centos ×2

yum ×2

repository ×1