报错内容如上所示 参考https://blog.csdn.net/qq_38900565/article/details/83869112
所述是因为yum源缺少对应匹配
解决方法:
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#sed -i 's/$releasever/7/g' /etc/yum.repos.d/CentOS-Base.repo
#yum repolist
如果报wget未安装 使用yum安装wget即可。
来源:https://www.cnblogs.com/Lovis/p/12597372.html