Freshclam - 无法完成下载 main.cvd

Fla*_* P. 4 clamav

几周前安装 Ubuntu 18.04 后,我尝试安装 clamav,我在以前的 Kubuntu 14.10 系统中有效地使用了它。clamav 安装的第一步进展顺利,但是当我尝试使用 freshclam 命令下载签名数据库 main.cvd 时,我无法继续进行。当下载过程到达 86% 时,我总是收到错误消息“!无法从 db.it.clamav.net 下载 main.cvd”。我尝试更改镜像下载站点(.it、.fr)并将超时从 30 增加到 120,并在几天内重新运行该命令,但没有结果。这是我从终端收到的一系列消息:

fla-user@FLA-DESKTOP:~$ sudo freshclam -v
Thu Sep 27 20:58:18 2018 -> *Current working dir is /var/lib/clamav
Thu Sep 27 20:58:18 2018 -> *Max retries == 2
Thu Sep 27 20:58:18 2018 -> ClamAV update process started at Thu Sep 27 20:58:18 2018
Thu Sep 27 20:58:18 2018 -> *Using IPv6 aware code
Thu Sep 27 20:58:18 2018 -> *Querying current.cvd.clamav.net
Thu Sep 27 20:58:18 2018 -> *TTL: 702
Thu Sep 27 20:58:18 2018 -> *Software version from DNS: 0.100.1
Thu Sep 27 20:58:18 2018 -> *Retrieving http://db.it.clamav.net/main.cvd
Thu Sep 27 20:58:18 2018 -> *Trying to download http://db.it.clamav.net/main.cvd (IP: 104.16.189.138)
Thu Sep 27 21:01:44 2018 -> ^getfile: Download interrupted: Connection reset by peer (IP: 104.16.189.138)
Thu Sep 27 21:01:44 2018 -> ^Can't download main.cvd from db.it.clamav.net
Thu Sep 27 21:01:44 2018 -> *Querying main.0.92.0.0.6810BD8A.ping.clamav.net
Thu Sep 27 21:01:44 2018 -> *Can't query main.0.92.0.0.6810BD8A.ping.clamav.net
Thu Sep 27 21:01:44 2018 -> Trying again in 5 secs...
Thu Sep 27 21:01:49 2018 -> ClamAV update process started at Thu Sep 27 21:01:49 2018
Thu Sep 27 21:01:49 2018 -> *Using IPv6 aware code
Thu Sep 27 21:01:49 2018 -> *Querying current.cvd.clamav.net
Thu Sep 27 21:01:49 2018 -> *TTL: 877
Thu Sep 27 21:01:49 2018 -> *Software version from DNS: 0.100.1
Thu Sep 27 21:01:49 2018 -> *Retrieving http://db.it.clamav.net/main.cvd
Thu Sep 27 21:01:49 2018 -> *Trying to download http://db.it.clamav.net/main.cvd (IP: 104.16.187.138)
Thu Sep 27 21:05:27 2018 -> !getfile: Download interrupted: Connection reset by peer (IP: 104.16.187.138)
Thu Sep 27 21:05:27 2018 -> !Can't download main.cvd from db.it.clamav.net
Thu Sep 27 21:05:27 2018 -> *Querying main.0.92.0.0.6810BB8A.ping.clamav.net
Thu Sep 27 21:05:27 2018 -> *Can't query main.0.92.0.0.6810BB8A.ping.clamav.net
Thu Sep 27 21:05:27 2018 -> Giving up on db.it.clamav.net...
Thu Sep 27 21:05:27 2018 -> ClamAV update process started at Thu Sep 27 21:05:27 2018
Thu Sep 27 21:05:27 2018 -> *Using IPv6 aware code
Thu Sep 27 21:05:27 2018 -> *Querying current.cvd.clamav.net
Thu Sep 27 21:05:27 2018 -> *TTL: 659
Thu Sep 27 21:05:27 2018 -> *Software version from DNS: 0.100.1
Thu Sep 27 21:05:27 2018 -> *Retrieving http://database.clamav.net/main.cvd
Thu Sep 27 21:05:27 2018 -> *Trying to download http://database.clamav.net/main.cvd (IP: 104.16.186.138)
Thu Sep 27 21:08:54 2018 -> !getfile: Download interrupted: Connection reset by peer (IP: 104.16.186.138)
Thu Sep 27 21:08:54 2018 -> !Can't download main.cvd from database.clamav.net
Thu Sep 27 21:08:54 2018 -> *Querying main.0.92.0.0.6810BA8A.ping.clamav.net
Thu Sep 27 21:08:54 2018 -> *Can't query main.0.92.0.0.6810BA8A.ping.clamav.net
Thu Sep 27 21:08:54 2018 -> Giving up on database.clamav.net...
Thu Sep 27 21:08:54 2018 -> Update failed. Your network may be down or none of the mirrors listed in /etc/clamav/freshclam.conf is working. Check https://www.clamav.net/documents/official-mirror-faq for possible reasons.
Run Code Online (Sandbox Code Playgroud)

谁能帮我解决问题?提前致谢。

弗拉维奥

小智 8

我遇到了类似的问题:clamav-freshclam 服务正在用这些超时故障填满 /var/log/clamav/freshclam.log,当我关闭该服务并手动运行 freshclam 时,它会中途通过然后失败。我发现在配置文件 /etc/clamav/freshclam.conf 中有两个超时指令,一个名为 ConnectTimeout,另一个名为 RecieveTimeout,默认情况下都设置为 30。我将 ConnectTimeout 更改为 10(没有理由等待连接超过 10 秒)并将接收超时设置为 120(需要更多时间通过我贫血的 DSL 连接下拉定义文件),现在 Freshclam 和 clamav- freshclam 服务都能够正确更新。