07
4
服务器用张宴修改的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
当前没有评论!
第一个在本文留言。