Linux Lite Forums

Software - Support => Other => Topic started by: cesar94 on October 12, 2017, 12:30:38 AM

Title: installing Clam av on my linux
Post by: cesar94 on October 12, 2017, 12:30:38 AM
Hello to everybody, i'm Cesar and i installed Linux Lite 2 months ago, it's very useful for me because i migrated from windows ( from 95 to 7, i hate the news versions) decided start with this OS for start using a simple version that reminds me the xp.

Anyway, i was reading and i saw videos to install an antivirus in Linux, maybe i don't need it, i know, but i prefer be prevent for any case, so i downloaded  the Clam av antivirus, i put the command "sudo apt-get update && sudo apt-get upgrade -y" everything normal at this point, but when i decide scan a directory , in my case "sudo clamscan -r /home/cesar" i get this message:

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.99.2
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo clamscan -r home/cesar/downloads
home/cesar/downloads: No such file or directory
WARNING: home/cesar/downloads: Can't access file

----------- SCAN SUMMARY -----------
Known viruses: 4566249
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.133 sec (0 m 8 s)
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo apt-get install clamav clamav-daemon -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
clamav is already the newest version (0.99.2+dfsg-0ubuntu0.16.04.2).
clamav-daemon is already the newest version (0.99.2+dfsg-0ubuntu0.16.04.2).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra efibootmgr libefivar0 libgles1-mesa libllvm3.8 libmircommon5 linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
  linux-image-4.4.0-70-generic linux-image-extra-4.4.0-70-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo clamscan -r home/cesar
home/cesar: No such file or directory
WARNING: home/cesar: Can't access file
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.010 sec (0 m 0 s)

this is weird for me, so i downloaded a minor infected file,i updated the freshclam with #freshclam, and i type again  "sudo clamscan -r /home/cesar/downloads"(there is the infected file)
and this message appears:

cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

WHY? i don't know, and when i try again a new scan this  appears:

cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo clamscan -r home/cesar/downloads
home/cesar/downloads: No such file or directory
WARNING: home/cesar/downloads: Can't access file

----------- SCAN SUMMARY -----------
Known viruses: 4566249
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.133 sec (0 m 8 s)
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo apt-get install clamav clamav-daemon -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
clamav is already the newest version (0.99.2+dfsg-0ubuntu0.16.04.2).
clamav-daemon is already the newest version (0.99.2+dfsg-0ubuntu0.16.04.2).
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra efibootmgr libefivar0 libgles1-mesa libllvm3.8 libmircommon5 linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
  linux-image-4.4.0-70-generic linux-image-extra-4.4.0-70-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$ sudo clamscan -r home/cesar
home/cesar: No such file or directory
WARNING: home/cesar: Can't access file[/color]

i know something is wrong, can someone help me?

thanks for your time reading this, and pardon me if i'm a noob, all this it's new for me  :P

Title: Re: installing Clam av on my linux
Post by: Jerry on October 12, 2017, 12:43:46 AM
The correct directory path is:

Code: [Select]
sudo clamscan -r /home/cesar/Downloads
Title: Re: installing Clam av on my linux
Post by: cesar94 on October 12, 2017, 01:15:50 AM
great! it works!, now i got this

----------- SCAN SUMMARY -----------
Known viruses: 6312739
Engine version: 0.99.2
Scanned directories: 228
Scanned files: 3236
Infected files: 5
Data scanned: 157.99 MB
Data read: 692.02 MB (ratio 0.23:1)
Time: 42.070 sec (0 m 42 s)
cesar@cesar-N68S3:~/Downloads/clamav-0.99.2$

now how to use those 5 infected files? i know only 1 is is infected by me, but what a surprise !!
maybe using sudo clamav kill, or something else...

Title: Re: installing Clam av on my linux
Post by: Jerry on October 12, 2017, 04:32:24 AM
Right click on them, Delete.