Centos:启用EPEL时yum更新的Clamd和Razor-agents依赖性失败

我想将Gitlab 6安装到我的CentOS 6.4 x64服​​务器上。 我正在跟随教程,并使用此命令启用EPEL:

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 

那么当我检查我的repolist时,结果如下:

 yum repolist repo id repo name status base CentOS-6 - Base 6381 epel Extra Packages for Enterprise Linux 6 - x86_64 9893 extras CentOS-6 - Extras 13 rpmforge RHEL 6 - RPMforge.net - dag 4643 updates CentOS-6 - Updates 1484 repolist: 22414 

之后,我会按照安装指南中的说明进行yum -y update 。 但是,我收到了两个包的错误: amavisd-new-2.8.0-4.el6.noarch (epel)razor-agents-2.85-1.el6.rf.x86_64 (@rpmforge) 。 当我禁用EPEL并安装了Gitlab时,我无法使其运行。 所以我想要确保像指南中提到的那样做一切事情。

这是我得到的错误。

 yum -y update ... --> Finished Dependency Resolution Error: Package: amavisd-new-2.8.0-4.el6.noarch (epel) Requires: /etc/clamd.d Available: clamd-0.98-1.el6.x86_64 (epel) Not found Installed: clamd-0.98-2.el6.rf.x86_64 (@rpmforge) Not found Available: clamd-0.96.4-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.96.5-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.1-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.2-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.3-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.4-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.5-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.5-2.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.6-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.97.7-1.el6.rf.x86_64 (rpmforge) Not found Available: clamd-0.98-1.el6.rf.x86_64 (rpmforge) Not found Error: Package: razor-agents-2.85-1.el6.rf.x86_64 (@rpmforge) Requires: perl-Razor-Agent = 2.85-1.el6.rf Removing: perl-Razor-Agent-2.85-1.el6.rf.x86_64 (@rpmforge) perl-Razor-Agent = 2.85-1.el6.rf Updated By: perl-Razor-Agent-2.85-6.el6.x86_64 (epel) perl-Razor-Agent = 2.85-6.el6 Available: perl-Razor-Agent-2.84-1.el6.rf.x86_64 (rpmforge) perl-Razor-Agent = 2.84-1.el6.rf You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

我怎样才能安装这两个包没有这些错误? 提前致谢。

我遇到了同样的问题。 正如你所拥有的,我已经安装了“epel”和“rpmforge”存储库。

看起来“epel”存储库在导致这个问题的“amavisd-new”包中有一些问题。 由于“amavisd-new”包也可以在“rpmforge”存储库中使用,所以可以从那里安装。 (同样的版本,据我所知)

您可以通过命令行参数简单地禁用epel存储库以安装amavisd-new。

yum –disablerepo = epel install amavisd-new

当你这样做时,你可能会注意到另外一个关于“lzop”包的先决条件错误信息。 这个包只在“epel”仓库中。 因此,首先安装“lzop”包,然后在“epel”存储库被禁用的情况下安装“amavisd-new”。 这为我解决了。

razor-agents包在atrpms存储库中可用。 以下命令适用于i386。 对于x86_64,在x86_64的URL中更改i386。

wget http://dl.atrpms.net/el6-i386/atrpms/stable/atrpms-repo-6-7.el6.i686.rpm

rpm -Uvh atrpms-repo * rpm

yum安装剃刀代理