[clamav-users] How to download and update main.cvd and daily.cvd manually AND update mirrors
Micah Snyder (micasnyd)
micasnyd at cisco.com
Fri Dec 15 14:27:29 UTC 2017
Hang on, did you just say that clamav doesn’t have write permissions to the databases? That /would/ explain why freshclam can’t save the new database files.
Micah Snyder
Software Engineer
Talos
Cisco Systems, Inc.
On Dec 15, 2017, at 4:52 AM, George <gdparlichev at gmail.com<mailto:gdparlichev at gmail.com>> wrote:
Hi Dennis,
Thanks again for your answer.
I just checked and clamav can read the main.cvd and the daily.cvd. It
cannot write. I hope that's what you meant.
Otherwise, when I tried a manual update. I did what follows but, as you can
see, to no avail:
user at virus:~$ sudo /etc/init.d/clamav-freshclam stop
[ ok ] Stopping clamav-freshclam (via systemctl): clamav-freshclam.service.
user at virus:~$ sudo freshclam
ClamAV update process started at Fri Dec 15 11:46:39 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder:
sigmgr)
WARNING: getpatch: Can't download daily-24011.cdiff from db.local.clamav.net<http://db.local.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from db.local.clamav.net<http://db.local.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from db.local.clamav.net<http://db.local.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from db.local.clamav.net<http://db.local.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from db.local.clamav.net<http://db.local.clamav.net>
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: Can't download daily.cvd from db.local.clamav.net<http://db.local.clamav.net>
Trying again in 5 secs...
...
ClamAV update process started at Fri Dec 15 11:47:07 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder:
sigmgr)
WARNING: getpatch: Can't download daily-24011.cdiff from database.clamav.net<http://database.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from database.clamav.net<http://database.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from database.clamav.net<http://database.clamav.net>
WARNING: getpatch: Can't download daily-24011.cdiff from database.clamav.net<http://database.clamav.net>
ERROR: getpatch: Can't download daily-24011.cdiff from database.clamav.net<http://database.clamav.net>
WARNING: Incremental update failed, trying to download daily.cvd
ERROR: Can't download daily.cvd from database.clamav.net<http://database.clamav.net>
Giving up on database.clamav.net<http://database.clamav.net>...
Update failed. Your network may be down or none of the mirrors listed in
/etc/clamav/freshclam.conf is working. Check
http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
I don't know what to do here.
Best regards,
George
2017-12-14 18:53 GMT+02:00 Dennis Peterson <dennispe at inetnw.com<mailto:dennispe at inetnw.com>>:
Did you make sure permissions are set so that the clam user can read them?
On 12/14/17 8:49 AM, George wrote:
Hi,
I mistakingly copied this twice in the email. But I did it as in your
reply. that's not the problem.
Thanks,
George
2017-12-14 18:39 GMT+02:00 Dennis Peterson <dennispe at inetnw.com<mailto:dennispe at inetnw.com>>:
you are downloading main.cvd twice. Change one of the wget commands to
download daily.cvd.
Example:
wget database.clamav.net/main.cvd<http://database.clamav.net/main.cvd>
sudo cp main.cvd /var/lib/clamav
wget database.clamav.net/daily.cvd<http://database.clamav.net/daily.cvd>
sudo cp daily.cvd /var/lib/clamav
dp
On 12/14/17 8:28 AM, George wrote:
Dear All,
I am still getting the message that my database is more than 7 days
old. I
successfully downloaded and updated main.cvd and daily.cvd manually, as
follows:
wget database.clamav.net/main.cvd<http://database.clamav.net/main.cvd>
sudo cp main.cvd /var/lib/clamav
wget database.clamav.net/main.cvd<http://database.clamav.net/main.cvd>
sudo cp daily.cvd /var/lib/clamav
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
More information about the clamav-users
mailing list