I can't update the clamav antivirus [duplicate]
Solution 1:
This is likely to be because the update is currently being run automatically, or you are running it somewhere else (you would know about this). You can change how often it is run automatically, and also stop it being run automatically by running the following:
sudo dpkg-reconfigure clamav-freshclam
After completing the setup you will be able to run sudo freshclam
without error (unless you set it to cron
and you happen to execute the command at the time it automatically checks).
Solution 2:
I suppose that you cannot update clamav database due to it being locked by running daemon. Presumably Ubuntu proceeds with an automatic update.
To update virus database manually, you have to stop daemon by typing in CLI:
sudo /etc/init.d/clamav-freshclam stop
Now you can update virus signatures:
sudo freshclam -v
Finally, restart daemon with
sudo /etc/init.d/clamav-freshclam start