需要:perl(压缩::原始::Zlib) = 2.052

需要:perl(压缩::原始::Zlib) = 2.052

我试图运行 ayum update但被依赖项阻止了。我已经安装了其他软件包所需的 rpmforge el6。

Error: Package: perl-IO-Compress-2.052-1.el6.rfx.noarch (rpmforge-extras)
           Requires: perl(Compress::Raw::Zlib) = 2.052
           Installed: 1:perl-Compress-Raw-Zlib-2.020-127.el6.i686 (@base)
               perl(Compress::Raw::Zlib) = 2.020
           Available: perl-Compress-Raw-Zlib-2.030-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.030
           Available: perl-Compress-Raw-Zlib-2.033-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.033
           Available: perl-Compress-Raw-Zlib-2.034-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.034
           Available: perl-Compress-Raw-Zlib-2.035-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.035
           Available: perl-Compress-Raw-Zlib-2.037-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.037
           Available: perl-Compress-Raw-Zlib-2.051-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.051
           Available: perl-Compress-Raw-Zlib-2.052-1.el6.rfx.i686 (rpmforge-extras)
               perl(Compress::Raw::Zlib) = 2.052
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

[root@mx2 ~]# yum install perl-Compress-Raw-Zlib-2.052-1.el6.rfx.i686
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosn4.centos.org
 * extras: mirror.nsc.liu.se
 * rpmforge: mirror.nl.leaseweb.net
 * rpmforge-extras: mirror.nl.leaseweb.net
 * updates: centoss5.centos.org
Setting up Install Process
Package matching perl-Compress-Raw-Zlib-2.052-1.el6.rfx.i686 already installed. Checking for update.
Nothing to do

[root@mx2 ~]# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

cpan[1]> install Compress::Raw::Zlib
CPAN: Storable loaded ok (v2.20)
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 05 Feb 2013 10:41:03 GMT
Compress::Raw::Zlib is up to date (2.060).

答案1

1:意味着它有一个时代1. 可用软件包中缺少此内容意味着它们的纪元为 0。较高的纪元值将胜过较高的版本和发行版值,因此您必须降级到 0:2.052 并固定软件包版本,或者 RPMForge必须通过将纪元更改为 1 并重建来修复他们的软件包。

答案2

这是第一个答案(提问者)的评论。由于它是一个临时修复,我会将其作为答案发送,这样其他人就不会错过它。

不,我不知道该怎么做。因此,在此期间,我在 /etc/yum.repos.d/rpmforge.repo 中的 [rpmforge-extras] 下添加了 except=perl-IO-compress* – Christian

答案3

尝试通过运行删除冲突的包

yum remove perl-Compress-Raw-Zlib

跑步

yum update

此问题来自版本不匹配的 RPM Forge Extra Repository。

相关内容