clamd problems after upgrading to ClamAV v0.93.2 for some

If you’re seeing the following when trying to restart clamd after upgrading to the latest version of ClamAV:

# service clamd restart Starting clamd: LibClamAV Error: cli_dbgets: Preliminary end of data LibClamAV Error: cli_dbgets: Preliminary end of data LibClamAV Error: cli_dbgets: Preliminary end of data LibClamAV Error: Empty database file LibClamAV Error: Can’t load daily.db: Malformed database LibClamAV Error: cli_tgzload: Invalid size in header LibClamAV Error: Can’t load /usr/local/share/clamav/daily.cld: Malformed database ERROR: Malformed database

The it appears ClamAV have borked your freshclam database. To fix:

rm -Rfv /usr/local/share/clamav/*freshclamservice clamd restart