Redhat

在 RHEL6.2 上安裝 perl-Time-HiRes 會導致 perl 依賴錯誤

  • March 21, 2014

嘗試安裝 perl-Time-HiRes 時,我得到以下資訊:

host1:user1 > sudo yum install perl-Time-HiRes
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Time-HiRes.x86_64 4:1.9721-119.el6_1.1 will be installed
--> Processing Dependency: perl = 4:5.10.1-119.el6_1.1 for package: 4:perl-Time-HiRes-1.9721-119.el6_1.1.x86_64
--> Finished Dependency Resolution
Error: Package: 4:perl-Time-HiRes-1.9721-119.el6_1.1.x86_64 (rhel-6-6.2-server)
          Requires: perl = 4:5.10.1-119.el6_1.1
          Installed: 4:perl-5.10.1-129.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4)
              perl = 4:5.10.1-129.el6
          Available: 4:perl-5.10.1-119.el6_1.1.x86_64 (rhel-6-6.2-server)
              perl = 4:5.10.1-119.el6_1.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我不明白。好像是在找perl-5.10.1-129?但據我所知,最新可用的是 perl-5.10.1-119。

我啟用了 EPEL 儲存庫,雖然這個包來自 repo rhel-6-6.2-server

我實際上正在嘗試安裝munin-node,但它在同一個包上失敗。

正如@MichaelHampton 所發現的,我實際上使用的是 6.4,但它被配置為使用 6.2 儲存庫(當為我建構伺服器時猜測是一個錯誤)。使用 6.4 儲存庫工作正常。

這真的是一個評論,但我沒有足夠的積分……

我在進行 yum 更新時也遇到過類似的問題。(而且是 yum update 不是 yum upgrade)。

通常,這很容易通過執行“yum update”來解決,即“yum update perl”然後,如果成功,執行“yum update perl-Time-HiRes”

引用自:https://serverfault.com/questions/583479