我正在尝试运行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
运行相同的错误。
我该如何解决这个问题?
我已经在我的服务器上安装了 CentOs 7 并且由于一些未知的原因(至少是我)意识到,默认的 yum 存储库不起作用。
例如我试过yum install vim
但得到
加载的插件:fastestmirror
配置的存储库之一失败(未知),并且 yum 没有足够的缓存数据来继续。在这一点上,yum 唯一可以做的安全事情就是失败。有几种方法可以“修复”这个问题:
Run Code Online (Sandbox Code Playgroud)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 …