Clamav will sometimes have trouble downloading updates for some reason or another. I’ll show you how to fix this in Ubuntu Linux!
First, stop clamav:
$ sudo /etc/init.d/clamav-daemon stop $ sudo /etc/init.d/clamav-freshclam stop
Next we are going to manually download the latest signatures from clamav’s website and place them into the proper location in Ubuntu. In Ubuntu Linux, clamav signatures are located in /var/lib/clamav/.
$ wget http://db.local.clamav.net/main.cvd && sudo cp main.cvd /var/lib/clamav/ $ wget http://db.local.clamav.net/daily.cvd && sudo cp daily.cvd /var/lib/clamav/ $ wget http://db.local.clamav.net/bytecode.cvd && sudo cp bytecode.cvd /var/lib/clamav/
Next, fix some permissions:
$ sudo chown -R clamav:clamav /var/lib/clamav/
Finally, start clamav:
$ sudo /etc/init.d/clamav-daemon start $ sudo /etc/init.d/clamav-freshclam start
Lastly you may want to check the clamav logs to make sure clamav is updating OK.
$ cat /var/log/clamav/freshclam.log