我想ansible
在没有互联网的服务器上安装,但出现此错误:
Error: Package: 1:openssl-devel-1.0.1e-60.el7.x86_64 (@local-repo)
Requires: openssl-libs(x86-64) = 1:1.0.1e-60.el7
Removing: 1:openssl-libs-1.0.1e-60.el7.x86_64 (@anaconda)
openssl-libs(x86-64) = 1:1.0.1e-60.el7
Updated By: 1:openssl-libs-1.0.2k-12.el7.x86_64 (local-repo)
openssl-libs(x86-64) = 1:1.0.2k-12.el7
Error: Package: 1:openssl-perl-1.0.1e-60.el7.x86_64 (@local-repo)
Requires: openssl(x86-64) = 1:1.0.1e-60.el7
Removing: 1:openssl-1.0.1e-60.el7.x86_64 (@anaconda)
openssl(x86-64) = 1:1.0.1e-60.el7
Updated By: 1:openssl-1.0.2k-12.el7.x86_64 (local-repo)
openssl(x86-64) = 1:1.0.2k-12.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我有openssl-1.0.1e-60.el7.x86_64
和openssl-libs-1.0.1e-60.el7.x86_64
在我的本地存储库中,但我无法更新。
答案1
问题是yum
不太聪明。您正在尝试安装,openssl-devel-1.0.1e-60
因此yum
检测到他也需要安装openssl-libs
。他检测到openssl-libs
可以安装较新版本的,但这与openssl-devel-1.0.1e-60
...冲突
有两种可能的解决方案:
- 确保
openssl-devel-1.0.2k-12.el7.x86_64
在您的本地存储库中可用 - 强制
yum
安装旧openssl-libs
包:yum install openssl-devel-1.0.1e-60 openssl-libs-1.0.1e-60 openssl-1.0.1e-60