ClamAV update error while downloading daily definitions

clamaverror01

Using security systems that make use of ClamAV, you may receive the ClamAV update error while downloading the daily definitions update.

The error occurs when ClamAV tries to update the signatures and one recent incremental update experienced a problem corrupting the file daily.cld involved in the process.

clamaverror02

To fix this matter is necessary to delete two files to restore the functionality.

  • mirrors.dat
  • daily.cld

 

Delete corrupted files

In CentOS Linux distribution, the files are located in the directory:

/var/lib/clamav

# cd /var/lib/clamav

clamaverror03

Rename the two files. Actually you can delete both files, I keep them just for security.

# mv mirrors.dat mirrors.dat.old
# mv daily.cld daily.cld.old

clamaverror04

 

Manually update ClamAV

Once files have been deleted, manually update ClamAV using the freshclam command in order to rebuild the mirrors list and the signatures.

clamaverror05

When the update completes successfully, delete the two files previously renamed no longer necessary.

# rm *.old

clamaverror06

ClamAV is now able to perform scheduled updates via cron.

firma