Ubuntu: CLAMAV not working


After installation of CLAMAV and try to scan I see this error. How do I solve this? Thanks

clamscan scan  LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav  ERROR: Can't open file or directory    ----------- SCAN SUMMARY -----------  Known viruses: 0  Engine version: 0.98.7  Scanned directories: 0  Scanned files: 0  Infected files: 0  Data scanned: 0.00 MB  Data read: 0.00 MB (ratio 0.00:1)  Time: 0.003 sec (0 m 0 s)  


The error message tells the tale: LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav and Known viruses: 0

You need

clamav-freshclam - anti-virus utility for Unix - virus database update utility  

Also ensure that user running the scan has read access to /var/lib/clamav.



NOTE: Read each line before you willy nilly start typing things in Terminal to understand what you are doing to the system.

1.) Remove potentially bad AV installations:

      ~#:sudo apt-get remove clamav         ~#:sudo apt-get remove clamtk         ~#:sudo apt-get remove freshclam        ~#:sudo apt-get clean        ~#:sudo apt-get autoremove  

2.) Reinstall AV:

      ~#:sudo apt-get install clamav -y       *(Terminal Version)*        ~#:sudo apt-get install clamtk -y       *(GUI version)*  

3.) Update AV Database:

      ~#:sudo freshclam                    *(takes ~30 minutes to download definitions)*  

4.) Configure AV & Scan: This example uses clamtk only

      ~#: clamtk                           *(Opens GUI)*            >toggle all options beneath settings tab          >"Network"                1. toggle "proxy" and type ""                 2. toggle / reselect "No Proxy" (to gray out #1 above)          >"Update Assistant"                1. toggle "manual" update option and click apply and "back"                 2. toggle "automatic" update option and click apply and "back"                     *Should now see updated definition count          >"Scan a Directory"                1. toggle desired directory you want scanned                     *For system scan I toggled the entire system (not just /root or /usr)                2. Click scan and a progress box will appear.  

Final Note: typing the phrase "--help" (without quotations) following command gives some hints. "-y" is the same thing as saying yes to installing all dependencies for package. If "-y" causes issues then exclude and manually press "y" key when prompted.

This is what I had to do to get clam working, perhaps a glitch for both clamtk and clamav (problem with both). Hope this helps someone else!!!

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »