freshclam でデータベースがアップデートされない時

clamavはopen source antivirus engine です。 データベースをアップデートするコマンドはfreshclamです。最近さっぱりアップデートされないので、調べてみました。

freshclamを実行した結果は以下の通りです。”host 10″という意味不明なホストに接続できないと言っています。

ClamAV update process started at Sat Dec  6 15:51:11 2014
Reading CVD header (main.cld): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
WARNING: Can't read main.cvd header from 10 (IP: )
Trying again in 5 secs...
ClamAV update process started at Sat Dec  6 15:51:16 2014
Reading CVD header (main.cld): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
WARNING: Can't read main.cvd header from 10 (IP: )
Trying again in 5 secs...
ClamAV update process started at Sat Dec  6 15:51:21 2014
Reading CVD header (main.cld): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
WARNING: Can't read main.cvd header from 10 (IP: )
Trying again in 5 secs...
ClamAV update process started at Sat Dec  6 15:51:26 2014
Reading CVD header (main.cld): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
WARNING: Can't read main.cvd header from 10 (IP: )
Trying again in 5 secs...
ClamAV update process started at Sat Dec  6 15:51:31 2014
Reading CVD header (main.cld): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=4 errno=22: Invalid argument
Can't connect to port 80 of host 10 (IP: 0.0.0.10)
WARNING: Can't read main.cvd header from 10 (IP: )
Giving up on 10...
Update failed. Your network may be down or none of the mirrors listed in /etc/clamav/freshclam.conf is working. Check http://www.clamav.net/documentation.html for possible reasons.

これの解決法は Debian Bug report logs – #748670 clamav-freshclam: doesn’t upgrade anymore にあります。具体的には /etc/clamav/freshclam.conf 中の

PrivateMirror 10

が問題の箇所で、この行を消せば良いようです。私は上記のページの通り ‘dpkg-reconfigure clamav-freshclam’ を実行し、remove the ’10’, when asked for the ‘Private mirror for freshclam’ を行いました。