Clamd.d not found setting up the Perfect Server (centos 6)

Discussion in 'Server Operation' started by deainfo.elisa, Aug 8, 2011.

  1. deainfo.elisa

    deainfo.elisa New Member

    Hi, I'd need some help with your tutorial found here
    http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3-p5

    When I try to run yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql

    I get this error:
    Code:
    Error: Package: amavisd-new-2.6.4-2.el6.noarch (epel)
               Requires: /etc/clamd.d
    How could we solve this? I googled this error message and somebody has the same problem but nobody knows the solution... can you help me?

    Thanks!

    Full log:
    Code:
    [root@CentOS-60-64-minimal ~]# yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql
    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
     * atomic: www7.atomicorp.com
     * base: centos.kiewel-online.ch
     * epel: mirror.fraunhofer.de
     * extras: centos.kiewel-online.ch
     * rpmforge: ftp-stud.fht-esslingen.de
     * updates: centos.kiewel-online.ch
    1146 packages excluded due to repository priority protections
    Setting up Install Process
    Package spamassassin-3.3.1-2.el6.x86_64 already installed and latest version
    Package clamav-0.97.2-1503.el6.art.x86_64 already installed and latest version
    Package clamd-0.97.2-1503.el6.art.x86_64 already installed and latest version
    Package unzip-6.0-1.el6.x86_64 already installed and latest version
    Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version
    Package unrar-4.0.7-1.el6.rf.x86_64 already installed and latest version
    Package perl-DBD-MySQL-4.013-3.el6.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package amavisd-new.noarch 0:2.6.4-2.el6 set to be updated
    --> Processing Dependency: perl(Net::Server) >= 0.87 for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Convert::UUlib) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Body) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(IO::Stringy) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::NBit) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Unix::Syslog) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Head) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::QuotedPrint) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: altermime for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Net::LDAP) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::Base64) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Convert::TNEF) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: p7zip for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: cabextract for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Mail::SPF) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: nomarch for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Entity) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Parser) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: arj for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::Binary) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(DBD::SQLite) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Authen::SASL) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Archive::Zip) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::Gzip64) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Decoder::UU) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: lzop for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(BerkeleyDB) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(MIME::Words) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: perl(Razor2::Client::Version) for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: freeze for package: amavisd-new-2.6.4-2.el6.noarch
    --> Processing Dependency: /usr/sbin/tmpwatch for package: amavisd-new-2.6.4-2.el6.noarch
    --> Running transaction check
    ---> Package altermime.x86_64 0:0.3.10-3.el6 set to be updated
    ---> Package amavisd-new.noarch 0:2.6.4-2.el6 set to be updated
    --> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
    ---> Package arj.x86_64 0:3.10.22-12.el6 set to be updated
    ---> Package cabextract.x86_64 0:1.3-3.el6 set to be updated
    --> Processing Dependency: libmspack.so.0()(64bit) for package: cabextract-1.3-3.el6.x86_64
    ---> Package freeze.x86_64 0:2.5.0-11.el6 set to be updated
    ---> Package lzop.x86_64 0:1.02-0.9.rc1.el6 set to be updated
    --> Processing Dependency: liblzo2.so.2()(64bit) for package: lzop-1.02-0.9.rc1.el6.x86_64
    ---> Package nomarch.x86_64 0:1.4-6.el6 set to be updated
    ---> Package p7zip.x86_64 0:9.13-1.el6 set to be updated
    ---> Package perl-Archive-Zip.noarch 0:1.30-2.el6 set to be updated
    ---> Package perl-Authen-SASL.noarch 0:2.13-2.el6 set to be updated
    --> Processing Dependency: perl(GSSAPI) for package: perl-Authen-SASL-2.13-2.el6.noarch
    ---> Package perl-BerkeleyDB.x86_64 0:0.43-3.el6 set to be updated
    ---> Package perl-Convert-TNEF.noarch 0:0.17-10.el6 set to be updated
    ---> Package perl-Convert-UUlib.x86_64 1:1.34-1.el6 set to be updated
    ---> Package perl-DBD-SQLite.x86_64 0:1.27-3.el6 set to be updated
    ---> Package perl-IO-stringy.noarch 0:2.110-10.1.el6 set to be updated
    ---> Package perl-LDAP.noarch 1:0.40-1.el6 set to be updated
    --> Processing Dependency: perl(XML::SAX::Writer) for package: 1:perl-LDAP-0.40-1.el6.noarch
    --> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-LDAP-0.40-1.el6.noarch
    --> Processing Dependency: perl(Convert::ASN1) for package: 1:perl-LDAP-0.40-1.el6.noarch
    ---> Package perl-MIME-tools.noarch 0:5.427-4.el6 set to be updated
    --> Processing Dependency: perl(Convert::BinHex) for package: perl-MIME-tools-5.427-4.el6.noarch
    ---> Package perl-Mail-SPF.noarch 0:2.007-1.el6 set to be updated
    ---> Package perl-Net-Server.noarch 0:0.97-7.el6 set to be updated
    --> Processing Dependency: perl(IO::Multiplex) for package: perl-Net-Server-0.97-7.el6.noarch
    ---> Package perl-Razor-Agent.x86_64 0:2.85-6.el6 set to be updated
    ---> Package perl-Unix-Syslog.x86_64 0:1.1-3.el6 set to be updated
    ---> Package tmpwatch.x86_64 0:2.9.16-3.el6 set to be updated
    --> Running transaction check
    ---> Package amavisd-new.noarch 0:2.6.4-2.el6 set to be updated
    --> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
    ---> Package libmspack.x86_64 0:0.2-0.1.20100723alpha.el6 set to be updated
    ---> Package lzo.x86_64 0:2.03-3.1.el6 set to be updated
    ---> Package perl-Convert-ASN1.noarch 0:0.22-1.el6 set to be updated
    ---> Package perl-Convert-BinHex.noarch 0:1.119-10.1.el6 set to be updated
    ---> Package perl-GSSAPI.x86_64 0:0.26-5.el6 set to be updated
    ---> Package perl-IO-Multiplex.noarch 0:1.13-1.el6 set to be updated
    ---> Package perl-XML-SAX.noarch 0:0.96-7.el6 set to be updated
    --> Processing Dependency: perl(XML::LibXML::Common) for package: perl-XML-SAX-0.96-7.el6.noarch
    --> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX-0.96-7.el6.noarch
    --> Processing Dependency: perl(XML::LibXML) for package: perl-XML-SAX-0.96-7.el6.noarch
    ---> Package perl-XML-SAX-Writer.noarch 0:0.50-8.el6 set to be updated
    --> Processing Dependency: perl(Text::Iconv) for package: perl-XML-SAX-Writer-0.50-8.el6.noarch
    --> Processing Dependency: perl(XML::Filter::BufferText) for package: perl-XML-SAX-Writer-0.50-8.el6.noarch
    --> Running transaction check
    ---> Package amavisd-new.noarch 0:2.6.4-2.el6 set to be updated
    --> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
    ---> Package perl-Text-Iconv.x86_64 0:1.7-6.el6 set to be updated
    ---> Package perl-XML-Filter-BufferText.noarch 0:1.01-8.el6 set to be updated
    ---> Package perl-XML-LibXML.x86_64 1:1.70-5.el6 set to be updated
    ---> Package perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 set to be updated
    --> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.6.4-2.el6.noarch
    --> Finished Dependency Resolution
    Error: Package: amavisd-new-2.6.4-2.el6.noarch (epel)
               Requires: /etc/clamd.d
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you try to create that directory? Maybe this helps.
    Code:
    mkdir /etc/clamd.d
     
  3. deainfo.elisa

    deainfo.elisa New Member

    That's the first solution we've tried but it's not been useful, we keep on getting that error...
    We also tried to install the packages of that yum command one by one leaving amavisd-new at the end but even in this case, same error...
    What package is meant to build that folder?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Do you get any errors when you run
    Code:
    yum install clamav clamd
    ?
     
  5. deainfo.elisa

    deainfo.elisa New Member

    If I run it I get no errors...

    Code:
    Package clamav-0.97.2-1503.el6.art.x86_64 already installed and latest version
    Package clamd-0.97.2-1503.el6.art.x86_64 already installed and latest version
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Hm... Maybe you should try to reinstall these packages?
     
  7. TiTex

    TiTex Member

    try
    Code:
    yum remove clam*
    you need to disable any other repo beside this ones
    CentOS-6 - Base
    CentOS-6 - Extras
    CentOS-6 - Updates
    Epel

    when you're done run
    Code:
    yum install amavisd-new
    should install clamav as a dependency of amavisd-new
     
    Last edited: Aug 15, 2011
  8. ghostshell

    ghostshell Member

  9. knivla

    knivla New Member

    still doesn't work

    i tried the above link. but no luck
     
  10. cfoe

    cfoe Member

    the thread is pretty old but I solved it by splitting the install:

    Code:
    yum install spamassassin unzip bzip2 unrar perl-DBD-mysql
    Code:
    yum install amavisd-new clamav clamd --disablerepo=atomic
     
  11. ZeroOriginal

    ZeroOriginal New Member

    My solution

    I ran into this same problem. The answer is to install clamav and clamd from the epel repository. I had the package from the rpmforge repository installed and the amavisd installation kept failing. So you need to remove any clamav and clamd packages already on your system from other repositories.

    Code:
    yum remove clamav clamd clamav-db
    Then install disabling the rpmforge or other repo

    Code:
    yum install amavisd-new clamav clamd --disablerepo=rpmforge
    That fixed the problem for me
     

Share This Page