centos7 yum错误解决办法

用yum安装软件时出现这样的错误提示

failure: repodata/repomd.xml from geekery: [Errno 256] No more mirrors to try.

解决办法,删除/etc/yum.repos.d 目录下的所有内容,重新下载国内的源repo文件即可解决问题

rm -rf  /etc/yum.repos.d/*.repo

然后下载

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

问题解决!

你可能感兴趣的:(centos7 yum错误解决办法)