我正在尝试按照以下说明在 ubuntu 中安装 ClamAV
blog.dutchcoders.io/installing-clamav-from-source/
更新病毒库时使用
sudo freshclam -v
我正进入(状态
Current working dir is /usr/local/share/clamav
Max retries == 3
ClamAV update process started at Mon Apr 11 13:10:34 2016
Using IPv6 aware code
Retrieving database.clamav.net/main.cvd
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host database.clamav.net (IP: 219.94.128.99)
Ignoring mirror 219.94.128.99 (due to previous errors)
Trying host database.clamav.net (27.96.54.66)...
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host database.clamav.net (IP: 27.96.54.66)
Trying host database.clamav.net (203.178.137.175)...
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host database.clamav.net (IP: 203.178.137.175)
Trying host database.clamav.net (211.239.150.206)...
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host database.clamav.net (IP: 211.239.150.206)
Trying host database.clamav.net (120.29.176.126)...
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host database.clamav.net (IP: 120.29.176.126)
WARNING: Can't download main.cvd from database.clamav.net
Trying again in 5 secs...
ClamAV update process started at Mon Apr 11 13:13:09 2016
Using IPv6 aware code
Retrieving database.clamav.net/main.cvd
Ignoring mirror 120.29.176.126 (due to previous errors)
Ignoring mirror 211.239.150.206 (due to previous errors)
Ignoring mirror 27.96.54.66 (due to previous errors)
Ignoring mirror 203.178.137.175 (due to previous errors)
Ignoring mirror 219.94.128.99 (due to previous errors)
WARNING: Can't download main.cvd from database.clamav.net
Trying again in 5 secs...
ClamAV update process started at Mon Apr 11 13:13:15 2016
Using IPv6 aware code
Retrieving database.clamav.net/main.cvd
Ignoring mirror 27.96.54.66 (due to previous errors)
Ignoring mirror 211.239.150.206 (due to previous errors)
Ignoring mirror 120.29.176.126 (due to previous errors)
Ignoring mirror 219.94.128.99 (due to previous errors)
Ignoring mirror 203.178.137.175 (due to previous errors)
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in
/usr/local/etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
为什么会这样??还有其他方法可以解决吗??
我不想要 ClamTK。
答案1
只是为了澄清:
- 您检查过您的互联网连接和防火墙设置吗?
- 您可以使用 wget 或 curl 连接到有问题的服务器吗?
- 为什么要从源头构建?
- 您是否尝试过可以通过 apt-get 安装的版本?
在继续之前尝试这些。
答案2
编辑freshclam.conf
sudo nano /etc/freshclam.conf
取消注释此行#DNSDatabaseInfo current.cvd.clamav.net
(示例):
DNSDatabaseInfo current.cvd.clamav.net
在该行之后#DatabaseMirror db.XY.clamav.net
添加一个新行,例如:
DatabaseMirror db.vn.clamav.net
您可以替换vn
为us
, fr
....
确保DatabaseMirror database.clamav.net
没有评论。
保存并更新
如果出现错误,请尝试以下命令:
chown -R 500:500 /var/lib/clamav
chmod -R 755 /var/lib/clamav