我正在尝试使用“ sudo yum install nginx”安装nginx,导致出现以下错误:
Error: Package: 1:openssl-1.0.1e-42.el7_1.9.x86_64 (client)
Requires: openssl-libs(x86-64) = 1:1.0.1e-42.el7_1.9
Installed: 1:openssl-libs-1.0.2k-19.el7.x86_64 (installed)
openssl-libs(x86-64) = 1:1.0.2k-19.el7
Available: 1:openssl-libs-1.0.1e-42.el7_1.9.x86_64 (client)
openssl-libs(x86-64) = 1:1.0.1e-42.el7_1.9
Available: 1:openssl-libs-1.0.2k-12.el7.i686 (localrepo)
~openssl-libs(x86-32) = 1:1.0.2k-12.el7
为解决这个问题,我遵循了以下一系列命令:
=> yum list openssl-libs --show-duplicates
输出:
Installed Packages
openssl-libs.x86_64 1:1.0.2k-19.el7 installed
Available Packages
openssl-libs.i686 1:1.0.1e-42.el7_1.9 client
openssl-libs.x86_64 1:1.0.1e-42.el7_1.9 client
openssl-libs.i686 1:1.0.2k-12.el7 localrepo
然后我尝试将“ openssl”降级,但出现以下错误:
Error: Package: erlang-crypto-20.3-1.el7.centos.x86_64 (@localrepoMoney)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Removing: 1:openssl-libs-1.0.2k-19.el7.x86_64 (installed)
libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Downgraded By: 1:openssl-libs-1.0.1e-42.el7_1.9.x86_64 (client)
~libcrypto.so.10(OPENSSL_1.0.1)(64bit)
当我尝试下载lybcrypto.so.10时,出现以下错误。
Resolving Dependencies
--> Running transaction check
---> Package openssl-libs.i686 1:1.0.2k-12.el7 will be installed
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: 1:openssl-libs-1.0.2k-12.el7.i686
--> Processing Dependency: libkrb5.so.3 for package: 1:openssl-libs-1.0.2k-12.el7.i686
--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: 1:openssl-libs-1.0.2k-12.el7.i686
--> Processing Dependency: libk5crypto.so.3 for package: 1:openssl-libs-1.0.2k-12.el7.i686
--> Processing Dependency: libgssapi_krb5.so.2 for package: 1:openssl-libs-1.0.2k-12.el7.i686
--> Running transaction check
---> Package krb5-libs.i686 0:1.13.2-10.el7 will be installed
--> Finished Dependency Resolution
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
1. You have an upgrade for openssl-libs which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of openssl-libs of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude openssl-libs.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of openssl-libs installed, but
yum can only see an upgrade for one of those architectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
3. You have duplicate versions of openssl-libs installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Protected multilib versions: 1:openssl-libs-1.0.2k-12.el7.i686 != 1:openssl-libs-1.0.2k-19.el7.x86_64
请建议我如何解决此问题。我已经坚持了很长时间。 谢谢!
答案 0 :(得分:0)
似乎不是从官方CentOS仓库中安装的Erlang,而是使用比当前CentOS版本正式支持的OpenSSL更新版本。您可以尝试从EPEL repo重新安装Erlang或将其完全卸载,安装支持openssl 1.0.2k的Nginx(例如从EPEL或自己构建),或升级CentOS。