漏洞修复RHSA-2018:3157-Moderate: curl and nss-pem security and bug fix update

大宝 4614 0
Centos7 漏洞修复RHSA-2018:3157-Moderate: curl and nss-pem security and bug fix update
软件:影响说明

漏洞修复RHSA-2018:3157-Moderate: curl and nss-pem security and bug fix update-第1张图片-莱芜网站制作中心

一、先做服务器镜像备份

二、修复命令

# yum update curl

# yum update libcurl

# yum update libcurl-devel

# yum update nss-pem

三、修复结果验证


        部分修复失败,继续搞呗

影响说明
软件:
libcurl 7.29.0-35.el7.centos
命中:
libcurl version less than 0:7.29.0-51.el7
路径:
/usr/lib64/libcurl.so.4
软件:
libcurl-devel 7.29.0-35.el7.centos
命中:
libcurl-devel version less than 0:7.29.0-51.el7
路径:
/usr/bin/curl-config
# rpm -qa|grep libcurl
libcurl-devel-7.29.0-35.el7.centos.x86_64
libcurl-7.29.0-35.el7.centos.x86_64
# rpm -e libcurl-7.29.0-35.el7.centos.x86_64 libcurl-devel-7.29.0-35.el7.centos.x86_64 --nodeps
yum安装失败按提示处理
# rpm -qa|grep yum
yum-plugin-fastestmirror-1.1.31-40.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-150.el7.centos.noarch
# rpm -e  yum-plugin-fastestmirror-1.1.31-40.el7.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-3.4.3-150.el7.centos.noarch --nodeps
# rpm -qa|grep yum
删除了,重装
wget等等等 
# ls
yum-3.4.3-161.el7.centos.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-plugin-auto-update-debug-info-1.1.31-50.el7.noarch.rpm
yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
# rpm -ivh *.rpm --nodeps --force
Preparing...                          ################################# [100%]
Updating / installing...
   1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 25%]
   2:yum-plugin-fastestmirror-1.1.31-5################################# [ 50%]
   3:yum-3.4.3-161.el7.centos         ################################# [ 75%]
   4:yum-plugin-auto-update-debug-info################################# [100%]
# wget http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm 
# rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm 
他娘的Yum还是没法用 居然依赖我们需要更新的libcurl
# yum makecache
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libcurl.so.4: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov  6 2016, 00:28:07) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
  

# wget  
# rpm -ivh libcurl-7.29.0-51.el7.x86_64.rpm
# yum list libcurl
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.cloud.aliyuncs.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.cloud.aliyuncs.com
 * updates: mirrors.cloud.aliyuncs.com
Installed Packages
libcurl.x86_64                                                                    7.29.0-51.el7                                                                    installed
Available Packages
libcurl.i686                                                                      7.29.0-51.el7                                                                    base

程序源 http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/ 或 http://mirrors.163.com/centos/7/os/x86_64/Packages/ 

因为我前段时间更新了Python3所以我怀疑Yum出问题了,删了重装的,绕了一圈。大家可以下面一句话解决

# wget http://mirrors.163.com/centos/7/os/x86_64/Packages/libcurl-7.29.0-51.el7.x86_64.rpm 
# rpm -ivh libcurl-7.29.0-51.el7.x86_64.rpm

OK 全搞定啦,重新验证。

漏洞修复RHSA-2018:3157-Moderate: curl and nss-pem security and bug fix update-第2张图片-莱芜网站制作中心

抱歉,评论功能暂时关闭!