Ask Your Question

Clamscan doesn't work

asked 2016-04-07 09:48:52 -0500

t0m gravatar image

updated 2016-04-07 10:26:12 -0500

hhlp gravatar image

So I installed clamav but when I do clamscan this shows up

    clamscan -r /
LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Can't verify database integrity
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd

ERROR: Can't verify database integrity

----------- SCAN SUMMARY -----------
Known viruses: 78529
Engine version: 0.99.1
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.494 sec (0 m 0 s)

any tips? I tried to reinstall it but that didn't help I am new in Fedora I have been using windows and ubuntu before.

edit retag flag offensive close merge delete


I tried that . I installed clamav-update package and then run freshclam but I got error message ERROR: Please edit the example config file /etc/freshclam.conf ERROR: Can't open/parse the config file /etc/freshclam.conf

t0m gravatar imaget0m ( 2016-04-07 11:37:32 -0500 )edit

i have such issue

Abaman gravatar imageAbaman ( 2018-11-07 09:57:43 -0500 )edit

you need edit /etc/freshclam.conf and comment example in line 8

sergiomb gravatar imagesergiomb ( 2018-11-22 09:14:50 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-04-07 09:55:27 -0500

aeperezt gravatar image

That message show that you need to update your virus databases to that you need to run freshclam to update it first.

edit flag offensive delete link more


freshclam is part of the clamav-update package. You may need to install that first.

florian gravatar imageflorian ( 2016-04-07 10:32:53 -0500 )edit

answered 2016-04-07 12:11:17 -0500

sergiomb gravatar image

updated 2016-04-08 17:46:40 -0500

I use clamav to scan pen drives, I have installed :

you need edit /etc/freshclam.conf and comment example in line 8 :

# Comment or remove the line below. 

And I run this (as root) to update database:

/usr/share/clamav/freshclam-sleep xnow

and (as normal user)

clamscan -r /home

works for me .

About permissions , I remember that I had same troubles

ll /var/lib/clamav -d
drwxr-xr-x. 2 clamupdate clamupdate 4096 Abr  7 18:09 /var/lib/clamav

you may need do as root:

chown -R clamupdate:clamupdate /var/lib/clamav
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-04-07 09:48:52 -0500

Seen: 2,209 times

Last updated: Nov 07 '18