如何通过终端更新 Clam Antivirus?
我已经安装了clamav,但是我想知道如何更新病毒库。
我有最新版本的freshclam和clamav安装,并在过去(当我有Ubuntu的14.10)下只运行freshclam每天自动几次,但一直没有运行所有的时间。现在我发现如果我去终端并执行:
sudo freshclam
Run Code Online (Sandbox Code Playgroud)
我得到:
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
Run Code Online (Sandbox Code Playgroud)
然后,能够手动运行该命令的唯一方法是freshclam终止该进程,但这既浪费时间又令人讨厌,所以我想完全停止freshclam自动更新,以便我可以进行手动更新。
所以我尝试的是安装clamtk,并在Update Assistant设置中尝试设置它以便我手动安装更新,然后我单击Apply,但这似乎,即使在重新启动后,对freshclam行为方式也没有影响。
所以我真正的问题是,我怎样才能得到它以便freshclam不自动检查更新,或者至少让它每天做几次,但并不总是在那里,所以我必须杀死它才能运行它?或者有没有办法修复clamtk以便它正确执行(我已经与开发人员取得联系clamtk并且他正在调查它,但不知道问题是什么)?
Description: Ubuntu 15.04
Release: 15.04
Run Code Online (Sandbox Code Playgroud)
ClamTk:
clamtk:
Installed: 5.18-1
Candidate: 5.18-1
Version table:
*** 5.18-1 0
100 /var/lib/dpkg/status
5.15-1 0
500 http://gb.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
Run Code Online (Sandbox Code Playgroud)
蛤AV:
clamav:
Installed: 0.98.7+dfsg-0ubuntu0.15.04.1
Candidate: 0.98.7+dfsg-0ubuntu0.15.04.1 …Run Code Online (Sandbox Code Playgroud) root@msy-Inspiron-One-2020:/home/msy# freshclam
ERROR: Missing argument for option at line 33
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
Run Code Online (Sandbox Code Playgroud)
这是/usr/local/etc/freshclam.conf:
#Example
DatabaseDirectory /var/lib/clamav
##
## Example config file for freshclam
## Please read the clamav.conf(5) manual before editing this file.
## This file may be optionally merged with clamav.conf.
##
# You can change the default database directory here.
#DatabaseDirectory /var/lib/clamav
DatabaseDirectory /usr/local/clamav/share/clamav
# Path to the log file (make sure it has proper permissions)
UpdateLogFile /var/log/freshclam.log
# Enable verbose …Run Code Online (Sandbox Code Playgroud)