Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav

When I tried to Scan the /home directory I got this error.

[root@ip-172-31-34-67 ~]# clamscan /home
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.103.0
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.004 sec (0 m 0 s)
Start Date: 2021:01:17 17:43:31
End Date:   2021:01:17 17:43:31
[root@ip-172-31-34-67 ~]#

It shows on supported database files found in /var/lib/clamav, which may caused the issue?

like image 237
Deekshith Reddy Inugala Avatar asked Jan 17 '21 17:01

Deekshith Reddy Inugala


2 Answers

You will need to use the command:

freshclam

to create the neccesary virus database files.

This can then be set up as a service to periodically update the database.

like image 91
Raman Sailopal Avatar answered Oct 08 '22 03:10

Raman Sailopal


Run :

  • sudo service clamav-freshclam stop
  • sudo freshclam
  • sudo service clamav-freshclam start
like image 27
Anas Ben Avatar answered Oct 08 '22 03:10

Anas Ben