Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin No package clamav available.

Discussion in 'System Administration' started by gasak, Aug 7, 2017.

  1. gasak

    gasak New Member

    28
    3
    3
    May 15, 2017
    Ratings:
    +5
    Local Time:
    5:12 PM
    1.13.0
    10.1.23-MariaDB
    Hi @eva2000 ,

    Tried to install maldet + clamav from centmin addons but got this error on clamav installation

    Code:
    ./maldet.sh
    CentOS / RHEL system detected
    Installing maldet...
    Download maldetect-current.tar.gz ...
    maldetect-current.tar.gz Archive found, skipping download...
    maldetect-current.tar.gz valid file.
    
    Linux Malware Detect v1.6
                (C) 2002-2017, R-fx Networks <proj@r-fx.org>
                (C) 2017, Ryan MacDonald <ryan@r-fx.org>
    This program may be freely redistributed under the terms of the GNU GPL
    
    installation completed to /usr/local/maldetect
    config file: /usr/local/maldetect/conf.maldet
    exec file: /usr/local/maldetect/maldet
    exec link: /usr/local/sbin/maldet
    exec link: /usr/local/sbin/lmd
    cron.daily: /etc/cron.daily/maldet
    imported config options from /usr/local/maldetect.last/conf.maldet
    maldet(43259): {sigup} performing signature update check...
    maldet(43259): {sigup} local signature set is version 2017070716978
    maldet(43259): {sigup} latest signature set already installed
    
    
    Installing clamav...
    Loaded plugins: fastestmirror, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: mirror2.evolution-host.com
     * epel-source: fedora-epel.mirrors.tds.net
     * extras: mirror2.evolution-host.com
     * rpmforge: mirror.team-cymru.org
     * updates: mirror2.evolution-host.com
    No package clamav available.
    No package clamd available.
    Error: Nothing to do
    grep: /etc/init.d/clamd: No such file or directory
    sed: can't read /etc/init.d/clamd: No such file or directory
    sed: can't read /etc/clamd.conf: No such file or directory
    cat: /etc/clamd.conf: No such file or directory
    ./maldet.sh: line 177: /etc/init.d/clamd: No such file or directory
    error reading information on service clamd: No such file or directory
    ./maldet.sh: line 179: freshclam: command not found
    
    real    0m0.000s
    user    0m0.000s
    sys     0m0.000s
    
    maldet + clamav installed...
    Please advise. Thank you.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    8:12 PM
    Nginx 1.13.x
    MariaDB 5.5
    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • How long ago did you install Centmin Mod ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    8:12 PM
    Nginx 1.13.x
    MariaDB 5.5
    You might be using 123.08stable's addons/maldet.sh which is using on install method compared to 123.09beta01's addons/maldet.sh

    This is latest updated 123.09beta01's addons/maldet.sh install run on CentOS 7.3 64bit

    working install of addons/maldet.sh - took 19+ mins to install as clamav update had to find a working mirror
    Code (Text):
    ./maldet.sh 
    CentOS / RHEL system detected
    Installing maldet...
    Download maldetect-current.tar.gz ...
    2017-08-06 17:57:14 URL:http://www.rfxn.com/downloads/maldetect-current.tar.gz [1605546/1605546] -> "maldetect-current.tar.gz" [1]
    Download done.
    maldetect-current.tar.gz valid file.
    
    Created symlink from /etc/systemd/system/multi-user.target.wants/maldet.service to /usr/lib/systemd/system/maldet.service.
    Linux Malware Detect v1.6
               (C) 2002-2017, R-fx Networks <proj@r-fx.org>
               (C) 2017, Ryan MacDonald <ryan@r-fx.org>
    This program may be freely redistributed under the terms of the GNU GPL
    
    installation completed to /usr/local/maldetect
    config file: /usr/local/maldetect/conf.maldet
    exec file: /usr/local/maldetect/maldet
    exec link: /usr/local/sbin/maldet
    exec link: /usr/local/sbin/lmd
    cron.daily: /etc/cron.daily/maldet
    maldet(6627): {sigup} performing signature update check...
    maldet(6627): {sigup} local signature set is version 2017070716978
    maldet(6627): {sigup} latest signature set already installed
    
    
    Installing clamav...
    Loaded plugins: fastestmirror, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror.optus.net
     * epel: mirror.nsw.coloau.com.au
     * extras: mirror.optus.net
     * updates: mirror.optus.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package clamav.x86_64 0:0.99.2-8.el7 will be installed
    --> Processing Dependency: clamav-lib = 0.99.2-8.el7 for package: clamav-0.99.2-8.el7.x86_64
    --> Processing Dependency: libclamav.so.7(CLAMAV_PUBLIC)(64bit) for package: clamav-0.99.2-8.el7.x86_64
    --> Processing Dependency: libclamav.so.7(CLAMAV_PRIVATE)(64bit) for package: clamav-0.99.2-8.el7.x86_64
    --> Processing Dependency: data(clamav) for package: clamav-0.99.2-8.el7.x86_64
    --> Processing Dependency: libclamav.so.7()(64bit) for package: clamav-0.99.2-8.el7.x86_64
    ---> Package clamav-server.x86_64 0:0.99.2-8.el7 will be installed
    --> Processing Dependency: clamav-filesystem = 0.99.2-8.el7 for package: clamav-server-0.99.2-8.el7.x86_64
    ---> Package clamav-update.x86_64 0:0.99.2-8.el7 will be installed
    --> Running transaction check
    ---> Package clamav-data.noarch 0:0.99.2-8.el7 will be installed
    ---> Package clamav-filesystem.noarch 0:0.99.2-8.el7 will be installed
    ---> Package clamav-lib.x86_64 0:0.99.2-8.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package                  Arch          Version               Repository   Size
    ================================================================================
    Installing:
     clamav                   x86_64        0.99.2-8.el7          epel        846 k
     clamav-server            x86_64        0.99.2-8.el7          epel        107 k
     clamav-update            x86_64        0.99.2-8.el7          epel         96 k
    Installing for dependencies:
     clamav-data              noarch        0.99.2-8.el7          epel        111 M
     clamav-filesystem        noarch        0.99.2-8.el7          epel         21 k
     clamav-lib               x86_64        0.99.2-8.el7          epel        3.8 M
    
    Transaction Summary
    ================================================================================
    Install  3 Packages (+3 Dependent packages)
    
    Total download size: 115 M
    Installed size: 125 M
    Downloading packages:
    --------------------------------------------------------------------------------
    Total                                              9.0 MB/s | 115 MB  00:12     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : clamav-filesystem-0.99.2-8.el7.noarch                        1/6
      Installing : clamav-data-0.99.2-8.el7.noarch                              2/6
      Installing : clamav-lib-0.99.2-8.el7.x86_64                               3/6
      Installing : clamav-server-0.99.2-8.el7.x86_64                            4/6
      Installing : clamav-0.99.2-8.el7.x86_64                                   5/6
      Installing : clamav-update-0.99.2-8.el7.x86_64                            6/6
      Verifying  : clamav-server-0.99.2-8.el7.x86_64                            1/6
      Verifying  : clamav-lib-0.99.2-8.el7.x86_64                               2/6
      Verifying  : clamav-filesystem-0.99.2-8.el7.noarch                        3/6
      Verifying  : clamav-data-0.99.2-8.el7.noarch                              4/6
      Verifying  : clamav-0.99.2-8.el7.x86_64                                   5/6
      Verifying  : clamav-update-0.99.2-8.el7.x86_64                            6/6
    
    Installed:
      clamav.x86_64 0:0.99.2-8.el7           clamav-server.x86_64 0:0.99.2-8.el7   
      clamav-update.x86_64 0:0.99.2-8.el7   
    
    Dependency Installed:
      clamav-data.noarch 0:0.99.2-8.el7   clamav-filesystem.noarch 0:0.99.2-8.el7 
      clamav-lib.x86_64 0:0.99.2-8.el7   
    
    Complete!
    chown: invalid user: ‘clamav:clamav’
    ClamAV update process started at Sun Aug  6 17:58:11 2017
    Downloading main-58.cdiff [100%]
    main.cld updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 198.148.78.4)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 104.131.196.175)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 194.186.47.19)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    WARNING: Incremental update failed, trying to download daily.cvd
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 64.22.33.90)
    Trying host database.clamav.net (204.130.133.50)...
    Downloading daily.cvd [100%]
    WARNING: Mirror 204.130.133.50 is not synchronized.
    Trying again in 5 secs...
    ClamAV update process started at Sun Aug  6 18:06:19 2017
    main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 194.8.197.22)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 168.143.19.95)
    Trying host database.clamav.net (208.72.56.53)...
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 208.72.56.53)
    Trying host database.clamav.net (207.57.106.31)...
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 207.57.106.31)
    Trying host database.clamav.net (69.12.162.28)...
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 69.12.162.28)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    Trying host database.clamav.net (150.214.142.197)...
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 150.214.142.197)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    WARNING: Incremental update failed, trying to download daily.cvd
    Downloading daily.cvd [100%]
    WARNING: Mirror 204.130.133.50 is not synchronized.
    Trying again in 5 secs...
    ClamAV update process started at Sun Aug  6 18:15:40 2017
    main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 150.214.142.197)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    Trying host database.clamav.net (208.72.56.53)...
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 208.72.56.53)
    Trying host database.clamav.net (194.8.197.22)...
    WARNING: getfile: daily-21724.cdiff not found on database.clamav.net (IP: 194.8.197.22)
    WARNING: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    connect_error: getsockopt(SO_ERROR): fd=4 error=110: Connection timed out
    Can't connect to port 80 of host database.clamav.net (IP: 168.143.19.95)
    Trying host database.clamav.net (104.131.196.175)...
    nonblock_recv: recv timing out (30 secs)
    ERROR: getfile: Error while reading database from database.clamav.net (IP: 104.131.196.175): Operation now in progress
    ERROR: getpatch: Can't download daily-21724.cdiff from database.clamav.net
    WARNING: Incremental update failed, trying to download daily.cvd
    Downloading daily.cvd [100%]
    daily.cvd updated (version: 23639, sigs: 1742139, f-level: 63, builder: neo)
    Downloading bytecode-279.cdiff [100%]
    Downloading bytecode-280.cdiff [100%]
    Downloading bytecode-281.cdiff [100%]
    Downloading bytecode-282.cdiff [100%]
    Downloading bytecode-283.cdiff [100%]
    Downloading bytecode-284.cdiff [100%]
    Downloading bytecode-285.cdiff [100%]
    Downloading bytecode-286.cdiff [100%]
    Downloading bytecode-287.cdiff [100%]
    Downloading bytecode-288.cdiff [100%]
    Downloading bytecode-289.cdiff [100%]
    Downloading bytecode-290.cdiff [100%]
    Downloading bytecode-291.cdiff [100%]
    Downloading bytecode-292.cdiff [100%]
    Downloading bytecode-293.cdiff [100%]
    Downloading bytecode-294.cdiff [100%]
    Downloading bytecode-295.cdiff [100%]
    Downloading bytecode-296.cdiff [100%]
    Downloading bytecode-297.cdiff [100%]
    Downloading bytecode-298.cdiff [100%]
    Downloading bytecode-299.cdiff [100%]
    Downloading bytecode-300.cdiff [100%]
    Downloading bytecode-301.cdiff [100%]
    Downloading bytecode-302.cdiff [100%]
    Downloading bytecode-303.cdiff [100%]
    Downloading bytecode-304.cdiff [100%]
    Downloading bytecode-305.cdiff [100%]
    Downloading bytecode-306.cdiff [100%]
    Downloading bytecode-307.cdiff [100%]
    Downloading bytecode-308.cdiff [100%]
    bytecode.cld updated (version: 308, sigs: 66, f-level: 63, builder: anvilleg)
    Database updated (6308454 signatures) from database.clamav.net (IP: 150.214.142.197)
    
    real    19m42.546s
    user    0m21.150s
    sys     0m7.076s
    
    maldet + clamav installed...
    
     
  4. gasak

    gasak New Member

    28
    3
    3
    May 15, 2017
    Ratings:
    +5
    Local Time:
    5:12 PM
    1.13.0
    10.1.23-MariaDB
    Hi,

    Centmin installed on my Centos 6.9 64 bit dedicated server with mod 08 stable. It was downgraded from the 09 beta like 2 weeks ago. Will it be fixed when I upgrade back to 09 beta?