Clamav:“警告:无法从 db.local.clamav.net 读取 main.cvd 标头”

Clamav:“警告:无法从 db.local.clamav.net 读取 main.cvd 标头”

当我输入命令时:

  tail /var/log/clamav/freshclam.log

它返回:

  Sat Sep 10 15:34:46 2016 -> WARNING: Can't read main.cvd header from db.local.clamav.net (IP: )
  Sat Sep 10 15:34:46 2016 -> Trying again in 5 secs...
  Sat Sep 10 15:34:51 2016 -> ClamAV update process started at Sat Sep 10 15:34:51 2016
  Sat Sep 10 15:34:51 2016 -> WARNING: Your ClamAV installation is OUTDATED!
  Sat Sep 10 15:34:51 2016 -> WARNING: Local version: 0.99 Recommended version: 0.99.2
  Sat Sep 10 15:34:51 2016 -> DON'T PANIC! Read http://www.clamav.net/support/faq
  Sat Sep 10 15:34:51 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
  Sat Sep 10 15:34:51 2016 -> daily.cld is up to date (version: 22200, sigs: 603798, f-level: 63, builder: raynman)
  Sat Sep 10 15:34:51 2016 -> bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
  Sat Sep 10 15:34:51 2016 -> --------------------------------------

当我执行这些命令时:

   sudo /etc/init.d/clamav-freshclam stop
   sudo freshclam -v
   sudo /etc/init.d/clamav-freshclam start

... 没有问题:

  tail /var/log/clamav/freshclam.log
  Sat Sep 10 15:45:41 2016 -> --------------------------------------
  Sat Sep 10 15:45:41 2016 -> freshclam daemon 0.99 (OS: linux-gnu, ARCH: i386, CPU: i686)
  Sat Sep 10 15:45:41 2016 -> ClamAV update process started at Sat Sep 10 15:45:41 2016
  Sat Sep 10 15:45:41 2016 -> WARNING: Your ClamAV installation is OUTDATED!
  Sat Sep 10 15:45:41 2016 -> WARNING: Local version: 0.99 Recommended version: 0.99.2
  Sat Sep 10 15:45:41 2016 -> DON'T PANIC! Read http://www.clamav.net/support/faq
  Sat Sep 10 15:45:41 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
  Sat Sep 10 15:45:41 2016 -> daily.cld is up to date (version: 22200, sigs: 603798, f-level: 63, builder: raynman)
  Sat Sep 10 15:45:41 2016 -> bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
  Sat Sep 10 15:45:41 2016 -> --------------------------------------

但当我重新启动时,问题又出现了。

我怎样才能解决这个问题?

答案1

事实上,一切都很正常。没有问题

因为现在 ClamAV 有一个守护进程。守护进程负责更新。所以如果我们想手动更新,我们需要先停止守护进程。

 $ tail /var/log/clamav/freshclam.log
 Thu Nov 10 19:55:59 2016 -> WARNING: Can't query current.cvd.clamav.net
 Thu Nov 10 19:55:59 2016 -> WARNING: Invalid DNS reply. Falling back to HTTP mode.
 Thu Nov 10 19:55:59 2016 -> Reading CVD header (main.cvd): Thu Nov 10 19:55:59 2016 -> WARNING: Can't get information about db.local.clamav.net:   Temporary failure in name resolution
 Thu Nov 10 19:55:59 2016 -> WARNING: Can't read main.cvd header from db.local.clamav.net (IP: )
 Thu Nov 10 19:55:59 2016 -> Trying again in 5 secs...
 Thu Nov 10 19:56:04 2016 -> ClamAV update process started at Thu Nov 10 19:56:04 2016
 Thu Nov 10 19:56:04 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
 Thu Nov 10 19:56:04 2016 -> daily.cld is up to date (version: 22511, sigs: 853831, f-level: 63, builder: neo)
 Thu Nov 10 19:56:04 2016 -> bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
 Thu Nov 10 19:56:04 2016 -> --------------------------------------

 $ sudo service clamav-freshclam stop
 $ sudo freshclam
 ClamAV update process started at Thu Nov 10 20:20:26 2016
 main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60,  builder: amishhammer)
 daily.cld is up to date (version: 22511, sigs: 853831, f-level: 63, builder: neo)
 bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)

 $ tail /var/log/clamav/freshclam.log
 Thu Nov 10 19:56:04 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
 Thu Nov 10 19:56:04 2016 -> daily.cld is up to date (version: 22511, sigs: 853831, f-level: 63, builder: neo)
 Thu Nov 10 19:56:04 2016 -> bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
 Thu Nov 10 19:56:04 2016 -> --------------------------------------
 Thu Nov 10 20:18:57 2016 -> Update process terminated
 Thu Nov 10 20:20:26 2016 -> --------------------------------------
 Thu Nov 10 20:20:26 2016 -> ClamAV update process started at Thu Nov 10 20:20:26 2016
 Thu Nov 10 20:20:26 2016 -> main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
 Thu Nov 10 20:20:26 2016 -> daily.cld is up to date (version: 22511, sigs: 853831, f-level: 63, builder: neo)
 Thu Nov 10 20:20:26 2016 -> bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)

 $ sudo service clamav-freshclam start

相关内容