前幾天由于openssl心臟出血漏洞,對openssl進(jìn)行了升級,如果老版本是OpenSSL 1.0.1e-fips,那直接安裝最新的openssl-1.0.1g-1.x86_64.rpm就行了,但是如果老版本低于1.0.1e,那直接安裝1.0.1g版本就會(huì )出缺失libssl.so.10和libcrypto.so.10庫文件的問(wèn)題,在啟動(dòng)某服務(wù)或者直接yum安裝等命令都會(huì )出現下面問(wèn)題;且最嚴重問(wèn)題是SSH就連接不上了···
問(wèn)題:
[root@localhost opt]# yum install opensslThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: libssl.so.10: cannot open shared object file: No such file or directory Please install a package which provides this module, orverify that the module is installed correctly. It's possible that the above module doesn't match thecurrent version of Python, which is:2.6.6 (r266:84292, Jun 18 2012, 14:18:47) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
原因:丟失庫文件對應的軟鏈接導致
解決方法:
1、首先查看/usr/lib64/目錄下(如是32位系統那路徑就是/usr/lib/)libssl.so庫文件的版本,我的是libssl.so.1.0.0
[root@localhost /]# ll /usr/lib64/libssl.so*-rwxr-xr-x. 1 root root 479012 Apr 9 13:39 /usr/lib64/libssl.so.1.0.0
2、再查看/usr/lib64/目錄下
[root@localhost /]# ll /usr/lib64/libcrypto.so*-rwxr-xr-x. 1 root root 2200149 Apr 9 13:39 /usr/lib64/libcrypto.so.1.0.0
3、創(chuàng )建軟鏈接(ln源就是上面查出的對應版本的庫文件):
ln -s /usr/lib64/libssl.so.1.0.0 libssl.so.10ln -s /usr/lib64/libcrypto.so.1.0.0 libcrypto.so.10
OK,至此問(wèn)題已解決了,但是openssl版本依然是老版本,要想升級到1.0.1g,如是centos系統,首先執行yum update openssl命令升級openssl版本,然后在安裝1.0.1g版本即可,等日后源里有最新的1.0.1g版本,可直接yum update到最新了~~~
原文鏈接:openssl從1.0.1e以下版本強制升級后缺失庫文件,轉載請注明來(lái)源!
聯(lián)系客服