yum安装依赖问题

yum安装依赖问题

我想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_64openssl-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

相关内容