其他分享
首页 > 其他分享> > 2021-07-27

2021-07-27

作者:互联网

yum update glibc 版本冲突解决

报错提示

[root@iZd2x05xtuu11cu32td02rZ yum.repos.d]# yum update nscd
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package nscd.x86_64 0:2.17-222.el7 will be updated
—> Package nscd.x86_64 0:2.17-292.el7 will be an update
–> Processing Dependency: glibc = 2.17-292.el7 for package: nscd-2.17-292.el7.x86_64
–> Running transaction check
—> Package glibc.x86_64 0:2.17-222.el7 will be updated
–> Processing Dependency: glibc = 2.17-222.el7 for package: glibc-devel-2.17-222.el7.x86_64
–> Processing Dependency: glibc = 2.17-222.el7 for package: glibc-headers-2.17-222.el7.x86_64
–> Processing Dependency: glibc = 2.17-222.el7 for package: glibc-common-2.17-222.el7.x86_64
—> Package glibc.x86_64 0:2.17-292.el7 will be an update
–> Running transaction check
—> Package glibc.x86_64 0:2.17-222.el7 will be updated
–> Processing Dependency: glibc = 2.17-222.el7 for package: glibc-devel-2.17-222.el7.x86_64
–> Processing Dependency: glibc = 2.17-222.el7 for package: glibc-headers-2.17-222.el7.x86_64
—> Package glibc-common.x86_64 0:2.17-222.el7 will be updated
—> Package glibc-common.x86_64 0:2.17-292.el7 will be an update
–> Finished Dependency Resolution
Error: Package: glibc-devel-2.17-222.el7.x86_64 (@base)
Requires: glibc = 2.17-222.el7
Removing: glibc-2.17-222.el7.x86_64 (@anaconda)
glibc = 2.17-222.el7
Updated By: glibc-2.17-292.el7.x86_64 (base)
glibc = 2.17-292.el7
Error: Package: glibc-headers-2.17-222.el7.x86_64 (@base)
Requires: glibc = 2.17-222.el7
Removing: glibc-2.17-222.el7.x86_64 (@anaconda)
glibc = 2.17-222.el7
Updated By: glibc-2.17-292.el7.x86_64 (base)
glibc = 2.17-292.el7
You could try using --skip-broken to work around the problem
** Found 9 pre-existing rpmdb problem(s), ‘yum check’ output follows:
cpp-4.8.5-44.el7.x86_64 is a duplicate with cpp-4.8.5-28.el7_5.1.x86_64
gcc-4.8.5-44.el7.x86_64 is a duplicate with gcc-4.8.5-28.el7_5.1.x86_64
gcc-4.8.5-44.el7.x86_64 has missing requires of libgcc >= (‘0’, ‘4.8.5’, ‘44.el7’)
gcc-4.8.5-44.el7.x86_64 has missing requires of libgomp = (‘0’, ‘4.8.5’, ‘44.el7’)
glibc-devel-2.17-317.el7.x86_64 is a duplicate with glibc-devel-2.17-222.el7.x86_64
glibc-devel-2.17-317.el7.x86_64 has missing requires of glibc = (‘0’, ‘2.17’, ‘317.el7’)
glibc-headers-2.17-317.el7.x86_64 is a duplicate with glibc-headers-2.17-222.el7.x86_64
glibc-headers-2.17-317.el7.x86_64 has missing requires of glibc = (‘0’, ‘2.17’, ‘317.el7’)
kernel-headers-3.10.0-1160.el7.x86_64 is a duplicate with kernel-headers-3.10.0-862.14.4.el7.x86_64

图片方便查看

注意看箭头

解决办法

执行rpm -qa|grep glibc-devel

对比版本:

在这里插入图片描述

卸载高版本

rpm -e glibc-headers-2.17-317.el7.x86_64

重新yum update xxx 即可

在这里插入图片描述

标签:27,07,glibc,222,64,2021,2.17,el7,x86
来源: https://blog.csdn.net/To_Error/article/details/119144688