安装完yum和rpm不可用

问答中心分类: Linux安装完yum和rpm不可用
数据异常 asked 5 年 ago
刚开始出现这情况还以为是跟安装docker有关呢,后来重装系统后,没有装其它的,直接通过下边的命令安装,还是这样,重启过还是这样
这是安装命令
wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 1 --php_option 8 --phpcache_option 1 --php_extensions gmagick,fileinfo,redis,memcached,memcache --phpmyadmin --db_option 1 --dbinstallmethod 1 --dbrootpwd oneinstack --redis --memcached
这里是安装完成的界面
##############Congratulations########################
Total OneinStack Install Time: 16 minutes
Nginx install dir: /usr/local/nginx
Database install dir: /usr/local/mysql
Database data dir: /data/mysql
Database user: root
Database password: oneinstack
PHP install dir: /usr/local/php
Opcache Control Panel URL: http://192.168.1.139/ocp.php
phpMyAdmin dir: /data/wwwroot/default/phpMyAdmin
phpMyAdmin Control Panel URL: http://192.168.1.139/phpMyAdmin
redis install dir: /usr/local/redis
memcached install dir: /usr/local/memcached
Index URL: http://192.168.1.139/
这里是安装完之后的运行yum直接就报错,系统为centos8
[root@localhost ~]# yum
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/libdnf/conf.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /lib64/librpmio.so.8: symbol EVP_md2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/yum", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.6/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/usr/lib64/python3.6/site-packages/libdnf/__init__.py", line 3, in <module>
from . import conf
File "/usr/lib64/python3.6/site-packages/libdnf/conf.py", line 17, in <module>
_conf = swig_import_helper()
File "/usr/lib64/python3.6/site-packages/libdnf/conf.py", line 16, in swig_import_helper
return importlib.import_module('_conf')
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_conf'
下边是系统版本信息
[root@localhost ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 8.0.1905 (Core)
Release: 8.0.1905
Codename: Core
rpm命令也报了错
[root@localhost ~]# rpm
rpm: relocation error: /lib64/librpmio.so.8: symbol EVP_md2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference
[root@localhost ~]#

2 Answers
oneinstack answered 5 年 ago
安装了mysql8.0吗? 执行如下:

rm -f /etc/ld.so.conf.d/z-mysql.conf && ldconfig

数据异常 answered 5 年 ago
安装mysql8了
已经解决了,删除了/usr/lib64/libcrypto.so.1.1然后重新创建了链接
ln -s /usr/lib64/libcrypto.so.1.1.1 /usr/lib64/libcrypto.so.1.1