Report this

What is the reason for this report?

ClamAV installation

Posted on March 3, 2020

Hi!

I install ClamAV on DO Ubuntu bionic VDS:

# apt install clamav clamav-daemon
# service clamav-daemon stop
# freshclam
# service clamav-daemon start

Freshclam updates database successfull:

Tue Mar  3 15:17:58 2020 -> --------------------------------------
Tue Mar  3 15:17:58 2020 -> ClamAV update process started at Tue Mar  3 15:17:58 2020
Tue Mar  3 15:17:58 2020 -> daily database available for update (local version: 25739, remote version: 25740)
Tue Mar  3 15:18:00 2020 -> Testing database: '/var/lib/clamav/tmp.1d0c5/clamav-972fa87623cc53abb781b5adc07e1c1d.tmp-daily.cld' ...
Tue Mar  3 15:18:05 2020 -> Database test passed.
Tue Mar  3 15:18:05 2020 -> daily.cld updated (version: 25740, sigs: 2204413, f-level: 63, builder: raynman)
Tue Mar  3 15:18:05 2020 -> main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Tue Mar  3 15:18:05 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
Tue Mar  3 15:18:05 2020 -> WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory

But ClamAV fails with message in log:

Tue Mar  3 15:45:06 2020 -> Reading databases from /var/lib/clamav
Tue Mar  3 15:45:06 2020 -> Not loading PUA signatures.
Tue Mar  3 15:45:06 2020 -> Bytecode: Security mode set to "TrustSigned".
Tue Mar  3 15:45:14 2020 -> ERROR: Malformed database
Tue Mar  3 15:45:14 2020 -> Closing the main socket.

Could it be that DO package repository and ClamAV DB are not compatible?

# apt-cache policy clamav
clamav:
  Installed: 0.102.2+dfsg-0ubuntu0.18.04.1
  Candidate: 0.102.2+dfsg-0ubuntu0.18.04.1
  Version table:
 *** 0.102.2+dfsg-0ubuntu0.18.04.1 500
        500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     0.99.4+addedllvm-0ubuntu1 500
        500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages

Does somebody know how to fix problem? Thanks in advance.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.