clamav升级问题报错2:Can‘t query current.cvd.clamav.net

clamav升级问题报错2:Can‘t query current.cvd.clamav.net ‍博主简介云计算领域优质创作者华为云开发者社区专家博主阿里云开发者社区专家博主交流社区运维交流社区 欢迎大家的加入 希望大家多多支持我们一起进步如果文章对你有帮助的话欢迎 点赞 评论 收藏 ⭐️ 加关注文章目录freshclam升级报错freshclam升级报错原因解决方式freshclam升级报错[rootclamav clamav]# freshclamClamAV update process started at Wed Mar115:39:552023WARNING: Cant query current.cvd.clamav.net WARNING: Invalid DNS reply. Falling back to HTTP mode. WARNING: Cant get information about database.clamav.net: Temporary failureinname resolution WARNING: Cant download main.cvd from database.clamav.net Trying again in 5 secs... ClamAV update process started at Wed Mar 1 15:39:55 2023 WARNING: Cant query current.cvd.clamav.net WARNING: Invalid DNS reply. Falling back to HTTP mode. WARNING: Cant get information about database.clamav.net: Temporary failure in name resolution WARNING: Cant download main.cvd from database.clamav.net Trying againin5secs... ClamAV update process started at Wed Mar115:39:552023WARNING: Cant query current.cvd.clamav.net WARNING: Invalid DNS reply. Falling back to HTTP mode. ERROR: Cant get information about database.clamav.net: Temporary failureinname resolution ERROR: Cant 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 listedin/opt/clamav/etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problemforpossible reasons.freshclam升级报错原因这个问题可能是由于网络连接问题导致的。Can’t query current.cvd.clamav.net的错误提示表明ClamAV无法连接到病毒数据库服务器。解决方式1 先ping以下病毒库pingdatabase.clamav.net可以ping通ping database.clamav.net 得到一个ip 如104.16.219.5 再然后改/etc/hosts这个文件。加入一行[rootclamav clamav]# vim /etc/hosts104.16.219.5 database.clamav.net2 重启网络service network restart或者/etc/init.d/network restart3 再次升级ClamAV病毒库freshclam升级成功。