ClamAV - getcvd: verify: freshclam 실행 시 데이터베이스 무결성 오류 메시지를 확인할 수 없습니다.

ClamAV - getcvd: verify: freshclam 실행 시 데이터베이스 무결성 오류 메시지를 확인할 수 없습니다.

Zorin Linux 운영 체제에서 ClamAV를 사용하여 freshclam을 실행하면 아래와 같은 오류가 발생합니다. 저는 Linux를 처음 사용하므로 가능하다면 이 문제를 단계별로 해결하는 데 도움이 필요할 수 있습니다. 동일한 문제가 있는 다른 사이트를 검색했지만 문제가 해결되지 않았습니다. 감사합니다!

mechalinuxzilla@zorin-vb:~$ sudo freshclam

Thu Jul 30 15:06:37 2020 -> ClamAV update process started at Thu Jul 30 15:06:37 2020
Thu Jul 30 15:06:37 2020 -> daily database available for download (remote version: 25889)
Time: 11.1s, ETA: 0.0s [=============================>] 92.69MiB/92.69MiB       
Thu Jul 30 15:06:48 2020 -> !getcvd: Verification: Can't verify database integrity
Thu Jul 30 15:06:48 2020 -> Trying again in 5 secs...
Thu Jul 30 15:06:53 2020 -> daily database available for download (remote version: 25889)
Time: 10.2s, ETA: 0.0s [=============================>] 92.69MiB/92.69MiB       
Thu Jul 30 15:07:03 2020 -> !getcvd: Verification: Can't verify database integrity
Thu Jul 30 15:07:03 2020 -> Trying again in 5 secs...
Thu Jul 30 15:07:08 2020 -> daily database available for download (remote version: 25889)
Time: 12.8s, ETA: 0.0s [=============================>] 92.69MiB/92.69MiB       
Thu Jul 30 15:07:21 2020 -> !getcvd: Verification: Can't verify database integrity
Thu Jul 30 15:07:21 2020 -> Giving up on https://database.clamav.net...
Thu Jul 30 15:07:21 2020 -> !Update failed for database: daily
Thu Jul 30 15:07:21 2020 -> ^fc_update_databases: fc_update_database failed: Invalid or corrupted CVD/CLD database (7)
Thu Jul 30 15:07:21 2020 -> !Database update process failed: Invalid or corrupted CVD/CLD database (7)
Thu Jul 30 15:07:21 2020 -> !Update failed.

답변1

이것에 대해 많은 조사를 한 후에 clamav.net에서 main.cvd 및 daily.cvd 파일을 수동으로 다운로드하고 freshclam을 실행하면 문제가 해결되는 것 같습니다. 더 이상 오류가 발생하지 않습니다. 내가 한 일은 다음과 같습니다.

mechalinuxzilla@zorin-vb:~$ sudo wget http://database.clamav.net/main.cvd

2020-07-31 14:01:50--  http://database.clamav.net/main.cvd
Resolving database.clamav.net (database.clamav.net)... 104.16.219.84, 104.16.218.84, 2606:4700::6810:da54, ...
Connecting to database.clamav.net (database.clamav.net)|104.16.219.84|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 117859675 (112M) [application/octet-stream]
Saving to: ‘main.cvd’

main.cvd              100%[=======================>] 112.40M  10.1MB/s    in 13s     

2020-07-31 14:02:03 (8.73 MB/s) - ‘main.cvd’ saved [117859675/117859675]


mechalinuxzilla@zorin-vb:~$ sudo wget http://database.clamav.net/daily.cvd

2020-07-31 14:02:38--  http://database.clamav.net/daily.cvd
Resolving database.clamav.net (database.clamav.net)... 104.16.218.84, 104.16.219.84, 2606:4700::6810:da54, ...
Connecting to database.clamav.net (database.clamav.net)|104.16.218.84|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 97507181 (93M) [application/octet-stream]
Saving to: ‘daily.cvd’

daily.cvd             100%[=======================>]  92.99M  9.17MB/s    in 11s     

2020-07-31 14:02:49 (8.47 MB/s) - ‘daily.cvd’ saved [97507181/97507181]

mechalinuxzilla@zorin-vb:~$ sudo freshclam

Fri Jul 31 14:02:55 2020 -> ClamAV update process started at Fri Jul 31 14:02:55 2020
Fri Jul 31 14:02:55 2020 -> daily.cvd database is up to date (version: 25890, sigs: 3729086, f-level: 63, builder: raynman)
Fri Jul 31 14:02:55 2020 -> main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Fri Jul 31 14:02:55 2020 -> bytecode database available for download (remote version: 331)
Time: 0.1s, ETA: 0.0s [=============================>] 289.44KiB/289.44KiB     
Fri Jul 31 14:02:55 2020 -> Testing database: '/var/lib/clamav/tmp.a3a04/clamav-7bed49e12b32dadbc775f183c02205c5.tmp-bytecode.cvd' ...
Fri Jul 31 14:02:55 2020 -> Database test passed.
Fri Jul 31 14:02:55 2020 -> bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)

관련 정보