卸载oneinstack怎么就影响YUM不能用了呢?

Author: sange - Posted:4年前 - View:1512

由于之前的环境是用oneinstack一键安装的,然后就没有再管环境的事了,最近无意间去PHP官网查了下函数,看到PHP版本都到7.4了,而我环境里的版本才7.1,由于强迫症和手贱想去升级PHP,但是当使用oneinstack自带的脚本升级的时候,发现只能降级,无法升级,于是脑壳抽筋,把oneinstack卸载再重装达到升级,现在想想,脑袋真是秀逗了,当初如果先升级oneinstack就不会搞出这么多事,哎。。。

卸载oneinstack后,发现YUM也不能用了,还报了下面的错:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libssl.so.1.0.0: cannot open shared object file: Permission denied

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 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]

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

看到这个错误,留下我蒙B的脸,搞什么JB啊,只能网上搜索求助万能的搜索引擎和网友了,得到的结果是因为OpenSSL的问题,根据网上的文章来看,是因为在/usr/lib64/usr/local/lib64两个目录下缺少libssl.so.1.0.0libcrypt.so.1.0.0这两个文件,只要重新装OpenSSL就行了。

我用find命令全盘查找了,果然没找到这两个破文件,剩下只能重装OpenSSL了,不过网上也没说装OpenSSL的哪个版本,我刚开始下载安装了libopenssl1.1.1k,发现生成不了libssl.so.1.0.0,反而生成了libssl.so.1.1.1,看了不行,又下载有点像的libssl1.0.2s安装试试,发现果然生成了libssl.so.1.0.0libcrypt.so.1.0.0这两个文件,随即把这两个文件拷贝到/usr/lib64/usr/local/lib64两个目录下,然后再用了YUM果然就OK了,至于为什么卸载oneinstack也影响了YUM,至今我也不明白啊!

0 人点赞  ∙  0 人收藏  
加入收藏 点赞 我要评论

目前共有 3 条回复

aerph
- aerph - 4年前

没有报错信息?

camen
- camen - 4年前

可能是楼主装了两个Py打架了吧?19.gif

eleeg
- eleeg - 3年前

yum是用Python写的,很大可能是楼主动了原有Py设置才导致这个错误,跟oneinstack应该没多大关系!