(无法加载 main.ndb)ClamAV Deamon 病毒签名数据库错误

(无法加载 main.ndb)ClamAV Deamon 病毒签名数据库错误

我将 ClamAV 安装为“普通”应用程序,并处于守护进程模式。安装后,守护进程状态显示以下部分。

clamd[7425]: LibClamAV Error: cli_parseadd(): Problem adding signature (1b).
clamd[7425]: LibClamAV Error: Problem parsing database at line 60930
clamd[7425]: LibClamAV Error: Can't load main.ndb: Malformed database
clamd[7425]: LibClamAV Error: cli_tgzload: Can't load main.ndb
clamd[7425]: LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Malformed database
clamd[7425]: LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
clamd[7425]: Wed Dec  5 16:55:22 2018 -> !Malformed database
systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: clamav-daemon.service: Unit entered failed state.
systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.

下一步,我使用 dpkg-reconfigure 部分创建配置文件。

sudo dpkg-reconfigure clamav-base 

完成此步骤后,状态控制台记录以下输出。

clamd[7558]: LibClamAV Error: cli_mpool_hex2str(): Can't allocate memory (151 bytes).
clamd[7558]: LibClamAV Error: Problem parsing database at line 47779
clamd[7558]: LibClamAV Error: Can't load main.ndb: Malformed database
clamd[7558]: LibClamAV Error: cli_tgzload: Can't load main.ndb
clamd[7558]: LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Malformed database
clamd[7558]: LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
clamd[7558]: Wed Dec  5 16:58:49 2018 -> !Malformed database

您可以找到 ClamAV DB 目录结构这里

也许您可以帮助我修复我的问题,以正确启动 ClamAV 和 Unix 套接字。

答案1

我通过在 Linux 系统上创建/编辑交换内存并重新安装 ClamAV 守护程序解决了该问题。

相关内容