运行 freshclam 以更新病毒数据库
突然出现以下信息
WARNING: getpatch: Can't download daily-14528.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-14528.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-14528.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-14528.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-14528.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
1) 查看
$ ls -al /var/lib/clamav
2) 下载病毒数据库
$ wget http://database.clamav.net/main.cvd
$ wget http://database.clamav.net/daily.cvd
$ wget http://database.clamav.net/bytecode.cvd
3) 取代原有的数据库
$ sudo cp *.cvd /var/lib/clamav
4) 测试
$ sudo freshclam
5) 将所有 cvd 文件拥有者改为 clamav
$ sudo chown clamav:clamav *.cvd
6) 其实已不需要用 sudo freshclam 来更新病毒数据库了, 因可用
$ systemctl status clamav-freshclam
可以看到日志的记录是有自己更新病毒数据库的
没有评论:
发表评论