Ubuntu – ubuntu clamav freshclam can’t download main.cvd

clamav

I installed clamav on my ubuntu system and have been unable to get freshclam to download a database.

Manually it produces the following errors:

sudo freshclam Sun Mar 1 14:32:32 2020 -> ClamAV update process
started at Sun Mar 1 14:32:32 2020 Sun Mar 1 14:32:32 2020 ->
daily.cvd database is up to date (version: 25738, sigs: 2202395,
f-level: 63, builder: raynman) Sun Mar 1 14:32:32 2020 -> main
database available for download (remote version: 59) Sun Mar 1
14:33:02 2020 -> ^Download failed (28) Sun Mar 1 14:33:02 2020 -> ^
Message: Timeout was reached Sun Mar 1 14:33:02 2020 -> ^getcvd:
Can't download main.cvd from https://database.clamav.net/main.cvd Sun
Mar 1 14:33:02 2020 -> Trying again in 5 secs…

When it runs automatically the log looks like this:

rich@richdesktop:~$ sudo tail /var/log/clamav/freshclam.log Sun Mar 1
16:02:19 2020 -> Trying again in 5 secs… Sun Mar 1 16:02:24 2020 ->
main database available for download (remote version: 59) Sun Mar 1
16:02:54 2020 -> WARNING: Download failed (28) Sun Mar 1 16:02:54
2020 -> WARNING: Message: Timeout was reached Sun Mar 1 16:02:54
2020 -> WARNING: getcvd: Can't download main.cvd from
https://database.clamav.net/main.cvd Sun Mar 1 16:02:54 2020 ->
Trying again in 5 secs… Sun Mar 1 16:02:59 2020 -> main database
available for download (remote version: 59) Sun Mar 1 16:03:29 2020
-> ERROR: Download failed (28) Sun Mar 1 16:03:29 2020 -> ERROR: Message: Timeout was reached Sun Mar 1 16:03:29 2020 -> ERROR:
getcvd: Can't download main.cvd from
https://database.clamav.net/main.cvd Sun Mar 1 16:03:29 2020 ->
Giving up on https://database.clamav.net… Sun Mar 1 16:03:29 2020
-> main database available for download (remote version: 59)

I have searched thru the other questions on this site but found no help.

I am running Ubuntu 18.04.4 LTS Desktop with no virtualization.

Best Answer

Had the same problem on Debian/KDE. I found this bug report which helped: simply edit freshclam.conf (kate /etc/clamav/freshclam.conf) and set ReceiveTimeout to something larger than 30.

For complete resolve there should be an error message that prompts you to do just that or a larger default value.