在我的 centos 6.5 最终系统上更新 yum 时遇到问题

在我的 centos 6.5 最终系统上更新 yum 时遇到问题
[root@spanky ~]# yum update
rpmdb: read: 0x7fff4032cbd0, 512: Input/output error
rpmdb: /var/lib/rpm/Providename: Input/output error
rpmdb: write: 0x12e1050, 4096: Bad file descriptor
error: cannot open Providename index using db3 - Bad file descriptor (9)
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. $releasever is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

请问有人可以帮帮我吗?

答案1

抱歉,这是事后的事情了,但也许其他人可以从这个解决方案中受益......

对我来说,解决方案是更新/etc/yum/vars/releasever文件从 6.5 降至 6;

sudo echo "6" > /etc/yum/vars/releasever

镜像列表服务器实际上应该将其解析为 6.6(在撰写本文时),或者是最新的 Centos 6.x 版本(有可用更新)。

相关内容