https://blog.csdn.net/xupengxl/article/details/89946287
解决方法:
step 1)
# cd /etc/yum.repos.d/
# vim CentOS-Base.repo
:%s/$releasever/7.4.1708/g ==>替换掉为真实的版本
step 2)
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-Base.repo
step 3)
运行 yum clean all
yum makecache