linux误卸载openssl后的恢复
⼀、原因
由于在编译mysql时,报ssl错误,于是想卸载openssl再重新安装
rpm -qa|grep openssl
rpm -e openssl-1.0.2k-16.el7_6.1.x86_64
rpm -e openssl-1.0.2k-16.el7_6.1.x86_64 --nodeps
rpm -e openssl-libs-1.0.2k-16.el7_6.1.x86_64 --nodeps
rpm -e openssl-devel-1.0.2k-16.el7_6.1.x86_64 --nodeps
⼆、报错
此时再执⾏yum报错
[root@server-1 lib64]# yum install openssl
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libcrypto.so.10: 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, Oct 302018, 23:45:53)
[GCC 4.8.520150623 (Red Hat 4.8.5-36)]
If you cannot solve this problem yourself, please go to
the yum faq at:
/wiki/Faq
系统不到ssl库,所以不能使⽤命令,不能yum只能rpm本地安装
三、下载openssl-libs-1.0.2k-12.el7.x86_64.rpm包
先下载到本地电脑,通过rz上传到服务器
四、安装
[root@server-1 src]# rpm -ivh openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm
准备中...                          >>>>>>### [100%]
软件包 openssl-libs-1:1.0.2k-16.el7_6.1.x86_64 已经安装
五、再执⾏yum openssl
[root@server-1 src]# yum search openssl
已加载插件:fastestmirror
mysql下载libs包的网址
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu
* extras: mirror.bit.edu
* updates: mirror.bit.edu
========================================== N/S matched: openssl =========================================== apr-util-openssl.x86_64 : APR utility library OpenSSL crytpo support
openssl-devel.i686 : Files for development of applications which will use OpenSSL
openssl-devel.x86_64 : Files for development of applications which will use OpenSSL
openssl-perl.x86_64 : Perl scripts provided with OpenSSL
openssl-static.i686 : Libraries for static linking of applications which will use OpenSSL
openssl-static.x86_64 : Libraries for static linking of applications which will use OpenSSL
perl-Crypt-OpenSSL-Bignum.x86_64 : Perl interface to OpenSSL for Bignum
perl-Crypt-OpenSSL-RSA.x86_64 : Perl interface to OpenSSL for RSA
perl-Crypt-OpenSSL-Random.x86_64 : Perl interface to OpenSSL for Random
pyOpenSSL.x86_64 : Python wrapper module around the OpenSSL library
xmlsec1-openssl.i686 : OpenSSL crypto plugin for XML Security Library
xmlsec1-openssl.x86_64 : OpenSSL crypto plugin for XML Security Library
xmlsec1-openssl-devel.i686 : OpenSSL crypto plugin for XML Security Library
xmlsec1-openssl-devel.x86_64 : OpenSSL crypto plugin for XML Security Library
m2crypto.x86_64 : Support for using OpenSSL in python scripts
nss_compat_ossl.i686 : Source-level compatibility library for OpenSSL to NSS porting
nss_compat_ossl.x86_64 : Source-level compatibility library for OpenSSL to NSS porting
openssl.x86_64 : Utilities from the general purpose cryptography library with TLS implementation
openssl-libs.i686 : A general purpose cryptography library with TLS implementation
openssl-libs.x86_64 : A general purpose cryptography library with TLS implementation
openssl098e.i686 : A compatibility version of a general cryptography and TLS library
openssl098e.x86_64 : A compatibility version of a general cryptography and TLS library
perl-Crypt-SSLeay.x86_64 : Crypt::SSLeay - OpenSSL glue that provides LWP https support
perl-Net-SSLeay.x86_64 : Perl extension for using OpenSSL
qca-ossl.i686 : OpenSSL plugin for the Qt Cryptographic Architecture v2
qca-ossl.x86_64 : OpenSSL plugin for the Qt Cryptographic Architecture v2
名称和简介匹配 only,使⽤“search all”试试。
[root@server-1 src]# history|grep rpm
30  rpm -qa|grep mysql
45wget sql/get/Downloads/MySQL-5.7/mysql-community-server-5.7.26-1.el7.x86_64.rpm
46yum install rpm
61wget sql/get/Downloads/MySQL-5.7/mysql-community-server-5.7.26-1.el7.x86_64.rpm
64rm -rf mysql-community-server-5.7.26-1.el7.x86_64.rpm.1
65rm -rf mysql-community-server-5.7.26-1.el7.x86_64.rpm.2
67wget sql/get/Downloads/MySQL-5.7/mysql-community-client-5.7.26-1.el7.x86_64.rpm
70  rpm -e mariadb-libs-1:5.5.60-1.el7_5.x86_64 --nodeps
71  rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm
72  rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm
73  rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
74  rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm
738  rpm -qa|grep openssl
739  rpm -e openssl-1.0.2k-16.el7_6.1.x86_64
740  rpm -e openssl-1.0.2k-16.el7_6.1.x86_64 --nodeps
741  rpm -e openssl-libs-1.0.2k-16.el7_6.1.x86_64 --nodeps
742  rpm -e openssl-devel-1.0.2k-16.el7_6.1.x86_64 --nodeps
743  rpm -qa|grep openssl
791  rpm -ivh openssl-libs-1.0.2k-12.el7.x86_64.rpm --force
792wget rpmfind/linux/centos/7.6.1810/updates/x86_64/Packages/openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm
795rm p-ivh openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm
796  rpm -ivh openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm
799  history|grep rpm
[root@server-1 src]# rpm -qa|grep openssl
openssl-libs-1.0.2k-16.el7_6.1.x86_64
[root@server-1 src]# rpm -ivh openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm
准备中...                          >>>>>>### [100%]
软件包 openssl-libs-1:1.0.2k-16.el7_6.1.x86_64 已经安装
[root@server-1 src]# yum install openssl
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu
* extras: mirror.bit.edu
* updates: mirror.bit.edu
正在解决依赖关系
--> 正在检查事务
---> 软件包 openssl.x86_64.1.1.0.2k-16.el7_6.1将被安装
--> 解决依赖关系完成
依赖关系解决
=========================================================================================================== Package              架构版本源⼤⼩
===========================================================================================================正在安装:
openssl              x86_64              1:1.0.2k-16.el7_6.1                updates              493 k
事务概要
===========================================================================================================安装1软件包
总下载量:493 k
安装⼤⼩:814 k
Is this ok [y/d/N]
恢复正常

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。

发表评论