07
4

YUM错误Metadata file does not match checksum解决方法

服务器用张宴修改的163国内centos镜像YUM升级的时候发现这个错误.

[Errno -1] Metadata file does not match checksum
Trying other mirror.

十分郁闷,开始以为服务器读不到163的镜像,wget一下没问题啊.先看看yum设置

163镜像yum设置方法

cd /etc/yum.repos.d/

mv CentOS-Base.repo CentOS-Base.repo.bak

wget http://blog.s135.com/soft/linux/centos/5.2/CentOS-Base.repo

其他服务器都没问题,这台怎么了.网上google了一下,原来数据校对出错的问题.linuxの飘扬介绍得很详细,这里就不累赘了.

只要一句命令就足以解决问题.

yum clean all

相关日志

当前没有评论!

第一个在本文留言。

发表评论

名字(必须)
邮箱(必须),(永不被公布)
网址(建议)

字体为 粗体 是必填项目,邮箱地址 永远不会 公布。

允许部分 HTML 代码:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs(网站链接)必须完整有效 (比如: http://www.vpnall.com),所有标签都必须完整的关闭。

超出部分系统将会自动分段及换行。

请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 可能 会被编辑或删除。