出现这个错误 找了好久的解决方案 最后发现 重装解决一切问题!!!
1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2. wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3. yum clean all #清除所有
4. yum makecache #重新建立源数据
最后 再次重申 重装解决一切问题!!!