我通过 sudo 安装了 ClamTK,apt-get install clamtk
然后意识到它已经过时了,于是清除了 clamtk。然后按照说明从最新版本的源代码编译了 clamav这里
当我去跑步的时候sudo freshclam
我得到
renamon@Gibson{~/Desktop/clamav-0.98.3}:sudo freshclam
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
并clamscan -r /
给我
renamon@Gibson{~/Desktop/clamav-0.98.3}:sudo clamscan -r /
LibClamAV Error: cl_load(): No such file or directory: /usr/local/share/clamav
ERROR: Can't get file status
----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.98.3
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.000 sec (0 m 0 s)
renamon@Gibson{~/Desktop/clamav-0.98.3}:
对此问题有任何帮助吗?
答案1
Ubuntu 中有两个 clamav 包:
clamav
(病毒扫描程序本身,仅具有 CLI 界面)clamtk
(社区为 clamav 构建的前端)
使用 GUI安装clamav
,您将需要两者。仅对于 CLI,只需安装clamav
:
sudo apt-get update
sudo apt-get install clamav
sudo apt-get install clamtk
安装完成后,输入以下内容来更新病毒数据库:
sudo clamav clamav-freshclam
您还可以使用以下命令安装 clamav 守护程序:
sudo apt-get install clamav-daemon
为了能够扫描 zip 文件,您需要执行以下操作:
sudo apt-get install libclamunrar6
vim /etc/clamd.conf
ScanArchive=yes
答案2
只需更新 AV 数据库(freshclam -v);如果您在无互联网环境中安装,请尝试使用具有互联网功能的环境,然后将所有数据库文件复制到其中
locate daily.cvd /var/clamav/daily.cvd
ll /var/clamav total 164776 drwxr-xr-x. 3 clamav
clamav 4096 Nov 24 08:43
clamav-02eec054bbbedef0a2cfb99a9827f86e.tmp drwxr-xr-x. 3 clamav
clamav 4096 Nov 21 17:07
clamav-a17ee1dc54d880226cb90f6751692a4a.tmp srw-r--r--. 1 clamav
clamav 0 Nov 24 08:45 clmilter.socket
-rw-r--r--. 1 clamav clamav 5240725 Jun 25 2012 daily.cvd
-rw-r--r--. 1 clamav clamav 163468288 Nov 21 17:03 main.cld
-rw-------. 1 clamav clamav 1248 Nov 24 08:43 mirrors.dat