可以看到Centos官方已经对6版本停止了更新,阿里,网易,清华都已经没有对Centos6版本的镜像源支持了
查看服务器版本
[root@localhost GSA]# cat /proc/version
Linux version 2.6.32-696.10.1.el6.x86_64 (mockbuild@c1bl.rdu2.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Tue Aug 22 18:51:35 UTC 2017
查看Centos版本
[root@localhost software]# rpm -q centos-release
centos-release-6-9.el6.12.3.x86_64
[root@localhost software]# cat /etc/redhat-release
CentOS release 6.9 (Final)
解决方案:
修改/etc/yum.repos.d/CentOS-Base.repo (原始文件另存为CentOS-Base.repo.o