大概率是yum源的问题
下载阿里的yum源
wget http://mirrors.aliyun.com/repo/Centos-7.repo -P /etc/yum.repos.d/
mv Centos-7.repo CentOS-Base.repo
将Centos-7.repo改名为CentOS-Base.repo
在/etc/yum.repos.d目录下有个CentOS-Base.repo文件,备份后替换
重新加载yum源
yum clean all && yum makecache