今天遇到一个yum安装报错如下:
错误:软件包:glibc-2.17-196.el7.i686 (centos7)
需要:glibc-common = 2.17-196.el7
已安装: glibc-common-2.17-222.el7.x86_64 (@anaconda)
glibc-common = 2.17-222.el7
可用: glibc-common-2.17-196.el7.x86_64 (centos7)
原因: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