[clamav-users] How to download and update main.cvd and daily.cvd manually AND update mirrors
George
gdparlichev at gmail.com
Fri Dec 15 17:19:55 UTC 2017
My mistake, clamav has both rw permissions. Thanks!
user at virus:~$ ls -la /var/lib/clamav
total 215016
drwxr-xr-x 2 clamav clamav 4096 dec 15 18:25 .
drwxr-xr-x 82 root root 4096 sep 2 16:09 ..
-rw-r--r-- 1 clamav clamav 766976 nov 3 20:34 bytecode.cld
-rw-r--r-- 1 clamav clamav 42567087 dec 6 19:53 daily.cvd
-rw-r--r-- 1 clamav clamav 117892267 dec 6 18:56 main.cvd
-rw------- 1 clamav clamav 104 dec 15 18:25 mirrors.dat
-rw-r--r-- 1 clamav clamav 58927418 nov 3 20:34 safebrowsing.cvd
2017-12-15 16:27 GMT+02:00 Micah Snyder (micasnyd) <micasnyd at cisco.com>:
> 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:de
> nnispe 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:de
> nnispe 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
>
> _______________________________________________
> clamav-users mailing list
> 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