当我在 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)