阿里云Linux Glibc库安全漏洞修复不成功解决方法

发布时间:2020-07-05编辑:脚本学堂
最近阿里云提示linux系统用户,统一修复glibc漏洞,避免通过gethostbyname系列函数实现远程代码执行,修复过程中提示Missing Dependency: glibc-common错误怎么办?

linux Glibc幽灵严重安全漏洞 修复图文方法

笔者有一台centos5.8服务器,在更新glibc漏洞时,报如下错误:
 

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* rpmforge: ftp.riken.jp
* updates: mirrors.163.com
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.5-123.el5_11.1 set to be updated
--> Processing Dependency: glibc-common = 2.5-123.el5_11.1 for package: glibc
--> Running transaction check
--> Processing Dependency: glibc-common = 2.5-107.el5_9.5 for package: glibc
---> Package glibc-common.x86_64 0:2.5-123.el5_11.1 set to be updated
--> Finished Dependency Resolution
glibc-2.5-107.el5_9.5.i686 from installed has depsolving problems
  --> Missing Dependency: glibc-common = 2.5-107.el5_9.5 is needed by package glibc-2.5-107.el5_9.5.i686 (installed)
Error: Missing Dependency: glibc-common = 2.5-107.el5_9.5 is needed by package glibc-2.5-107.el5_9.5.i686 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

在网上找了好多方法,始终不能解决这个问题。

尝试阿里云论坛中的方法:yum clean all,然后yum update glibc也是无果。

最后一会网友提醒,使用命令:
 

rpm -e  --nodeps   glibc-common

然后:
 

yum update glibc

就可以了。

如下图:
yum更新glibc漏洞

yum更新glibc漏洞2

最近大家都在更新glibc漏洞补丁,遇到这个问题的朋友可以参考下。

更新完成后,记得用如下命令:
 

rpm -qa|grep glibc2*

检测是否成功。