clamav Signatures not Updating Ubuntu Linux

Published on 2012/09/04, by in linux, sysadmin.

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 && sudo cp main.cvd /var/lib/clamav/

$ wget && sudo cp daily.cvd /var/lib/clamav/

$ wget && 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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home linux clamav Signatures not Updating Ubuntu Linux