I have ubuntu 16.04.6 version and I'm trying to install & run the clamdscan
on it to check for antiviruses.
I've used the installation instructions as given in their website. ie.
sudo apt-get install clamav
sudo apt-get install clamav-daemon
The above 2 commands works fine. But when I try to download the definitions (which I'm assuming is mandatory after the above) by running the command
sudo freshclam
it fails throwing the following error:
^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
According to this accepted answer, the file should get created after installing clamav-daemon
but obviously that does not happen.
nano /etc/clamav/clamd.conf
uncomment and save. This tutorial fixed an issue on my system. – JoKeR Sep 26 '19 at 08:17/var/run/clamav/clamd.ctl
no such file or directory create and give ownership to a sock file in that directory as well as specified in my answer. – JoKeR Sep 26 '19 at 08:49