两篇大神的文章大家可以先睹为快:
https://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum
http://www.linuxfly.org/post/174/
CentOS7 yum 安装 git 时出现错误:

[Errno -1] Metadata file does not match checksum
解决方法:
1)执行:yum clean all
2) /etc/yum.conf 文件中添加一行:
http_caching=none
3) 删除 /var/cache/yum/x86_64/7 目录下的所有内容
重新执行 yum install -y wget
经过一些错误提示和漫长等待后终于成功。
本文介绍了在 CentOS 7 中使用 yum 安装 git 时遇到的 [Errno-1] Metadata file does not match checksum 错误,并提供了详细的解决步骤。包括清理缓存、配置禁用 HTTP 缓存及手动删除相关文件。
2440

被折叠的 条评论
为什么被折叠?



