我为Linux安装了clamav防病毒。现在,我在终端中运行了以下命令,并得到了一个错误。我该怎么解决呢?
$ sudo freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).发布于 2016-12-24 03:16:28
freshclam应该已经作为守护进程运行,这就是为什么您要收到该消息的原因。如果您运行以下命令,您应该会看到正在发生更新:
tail -10 /var/log/clamav/freshclam.log下面是我的一个例子:
terrance@terrance-ubuntu:~$ tail -10 /var/log/clamav/freshclam.log
Fri Dec 23 19:08:16 2016 -> safebrowsing.cld is up to date (version: 45370, sigs: 2490012, f-level: 63, builder: google)
Fri Dec 23 19:08:16 2016 -> bytecode.cld is up to date (version: 285, sigs: 57, f-level: 63, builder: bbaker)
Fri Dec 23 19:08:16 2016 -> --------------------------------------
Fri Dec 23 20:08:16 2016 -> Received signal: wake up
Fri Dec 23 20:08:16 2016 -> ClamAV update process started at Fri Dec 23 20:08:16 2016
Fri Dec 23 20:08:16 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Fri Dec 23 20:08:16 2016 -> daily.cld is up to date (version: 22765, sigs: 1152120, f-level: 63, builder: neo)
Fri Dec 23 20:08:16 2016 -> safebrowsing.cld is up to date (version: 45370, sigs: 2490012, f-level: 63, builder: google)
Fri Dec 23 20:08:16 2016 -> bytecode.cld is up to date (version: 285, sigs: 57, f-level: 63, builder: bbaker)
Fri Dec 23 20:08:16 2016 -> --------------------------------------正如你所看到的,我的更新就在几分钟前。如果要更改更新间隔,请从终端窗口运行以下命令:
sudo dpkg-reconfigure clamav-freshclam然后,只需一步一步地查看提示,您就可以更改每天更新的一次(24次,即每小时一次):

希望这能有所帮助!
https://askubuntu.com/questions/864062
复制相似问题