clamav-daemon 启动条件失败,/var/lib/clamav/daily.{c[vl]d,inc} 未得到满足

clamav-daemon 启动条件失败,/var/lib/clamav/daily.{c[vl]d,inc} 未得到满足

安装 Modoboa(开源邮件托管)后,我尝试启动 clamav-daemon,但遇到启动失败的情况。

    systemctl status clamav-daemon.service
    clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: inactive (dead)
Condition: start condition failed at Fri 2021-01-15 04:19:06 EST; 33min ago
           └─ ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} was not met

下面显示了问题,conditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} 不满足。我无法使用 systemctl 或其他命令启动服务。经过一些故障排除后,我发现 /var/lib/clamav 是空的,应该有一些 .cvd 更新文件。此外,我无法使用此命令更新 clamav(显示 403 错误):

sudo clamav-freshclam

我现在能做什么?

答案1

经过多次尝试,我最终使用 wget 命令直接从clamav.net/下载并使用 scp 命令将它们移动到我的服务器并将它们放入 /var/lib/clamav ,然后重新启动服务并且它起作用了!

systemctl restart clamav-daemon.service
systemctl status clamav-daemon.service
    clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: active (running)

答案2

作为对 Omid 回答的补充,您可以.cvd从下面的镜像手动下载文件并将它们放在中/var/lib/clamav

(谢谢这个 AskUbuntu 答案

相关内容