我有一台 centos 7 服务器,我正在尝试安装某个软件包,但我收到错误软件包,并且软件包名称都是 .el8,但我不明白为什么会出现这种情况?我的仓库列表中没有 epel8:
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,097
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,455
extras/7/x86_64 CentOS-7 - Extras 305
salt-latest/x86_64 SaltStack Latest Release Channel for RHEL/Centos 7 107
salt-py3-2019.2/x86_64 SaltStack 2019.2 Release Channel for Python 3 RHEL/Centos 7 84
saltstack/x86_64 SaltStack latest Release Channel for RHEL/CentOS 7 107
updates/7/x86_64 CentOS-7 - Updates 711
repolist: 24,866
我可以强制epel7吗?
错误的输出
Error: Package: python3-m2crypto-0.33.0-1.el8.x86_64 (salt-py3-2019.2)
Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: salt-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-markupsafe
Error: Package: python3-m2crypto-0.33.0-1.el8.x86_64 (salt-py3-2019.2)
Requires: libcrypto.so.1.1()(64bit)
Error: Package: python3-m2crypto-0.33.0-1.el8.x86_64 (salt-py3-2019.2)
Requires: libssl.so.1.1()(64bit)
Error: Package: zeromq-4.3.1-4.el8.x86_64 (salt-py3-2019.2)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: salt-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-pyyaml
Error: Package: python3-m2crypto-0.33.0-1.el8.x86_64 (salt-py3-2019.2)
Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: salt-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-requests
Error: Package: zeromq-4.3.1-4.el8.x86_64 (salt-py3-2019.2)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: zeromq-4.3.1-4.el8.x86_64 (salt-py3-2019.2)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: salt-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-six
Error: Package: salt-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-jinja2
Error: Package: salt-master-2019.2.2-1.el8.noarch (salt-py3-2019.2)
Requires: python3-systemd
Error: Package: python3-m2crypto-0.33.0-1.el8.x86_64 (salt-py3-2019.2)
Requires: libcrypto.so.1.1(OPENSSL_1_1_1)(64bit)
答案1
删除了如上所述导致问题的三个盐堆栈存储库。之后安装运行良好。在文件夹 /etc/yum.repos.d/ 中删除了三个盐存储库安装了一个与盐相关的存储库。再次运行安装脚本,软件包上不再出现错误。