解决方法:
# 说明yum镜像有问题 可以尝试修复
vim /etc/yum.conf
#活用alt复制! 谢谢!
#[main]
#cachedir=/var/cache/yum/$basearch/$releasever
#keepcache=0
#debuglevel=2
#logfile=/var/log/yum.log
#exactarch=1
#obsoletes=1
#gpgcheck=1
#plugins=1
#installonly_limit=5
#bugtracker_url=http://bugs.centos.org/set_project.php?#project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum
#distroverpkg=centos-release
#之后执行下面这条
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
#还不行就去配置vim /etc/resolv.conf dns