Line 1: |
Line 1: |
− | Sometime you can have errors of clamav which ask to download some files as below, The admin account can receive a lot of emails on its mailbox, when clamav try to update its database, several by days.
| + | On occasion there can be errors with clamav which can relate to the download of update files as shown below. The admin account can be flooded by emails when clamav tries to update its database, this can occur several times a day. |
| | | |
| freshclam: Update failed | | freshclam: Update failed |
Line 11: |
Line 11: |
| 2013-03-02 22:58:52.561968500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons. | | 2013-03-02 22:58:52.561968500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons. |
| | | |
− | {{Tip box|This is a workaround to have a new database without complaints of clamav. use a root terminal to perform these commands.}} | + | {{Tip box|This is a workaround to create a new database solving the error condition of clamav. Use a root terminal to perform these commands.}} |
| | | |
| Shutdown clam so clamd.socket file is removed | | Shutdown clam so clamd.socket file is removed |
Line 19: |
Line 19: |
| cd /var/clamav | | cd /var/clamav |
| | | |
− | which showed as just 5 files in the /var/clamav folder: | + | which showes just 5 files in the /var/clamav folder: |
| | | |
| ls -la /var/clamav | | ls -la /var/clamav |
Line 28: |
Line 28: |
| -rw------- 1 clamav clamav 104 Feb 24 14:46 mirrors.dat | | -rw------- 1 clamav clamav 104 Feb 24 14:46 mirrors.dat |
| | | |
− | {{Warning box|if you are bandwidth poor or on slow connection '''then don't delete''' main.cvd}} | + | {{Warning box|if you have limited bandwidth or on a slow connection '''then don't delete''' main.cvd}} |
| | | |
− | Remove ALL files from folder to provide clean slate for update process | + | Remove ALL files from folder to provide a clean slate for update process |
| rm -f /var/clamav/* (you could skip the -f & confirm every file delete for safety) | | rm -f /var/clamav/* (you could skip the -f & confirm every file delete for safety) |
| | | |
Line 38: |
Line 38: |
| clamav-0.97.6-1.el5.rf | | clamav-0.97.6-1.el5.rf |
| | | |
− | Update clamav to latest version if required '''it will Not downloading clamav-db''' | + | Update clamav to latest version if required '''it will Not download clamav-db''' |
| yum update clamav | | yum update clamav |
| | | |
Line 64: |
Line 64: |
| | | |
| | | |
− | For completeness & to be absolutely sure signal-event post-update; signal-event reboot, then go through the logs post reboot to make sure everything started correctly. This is not necessary for this procedure but doesn't hurt.
| + | Finally & to be absolutely sure signal-event post-update; signal-event reboot, then go through the logs post reboot to make sure everything started correctly. This is not necessary for this procedure but doesn't hurt. |
| | | |
| [[Category:Howto]] | | [[Category:Howto]] |