每次我更新系统或任何其他已安装的应用程序时,都会收到以下错误消息。
Setting up clamav-daemon (0.102.2+dfsg-0ubuntu0.19.10.1) ... touch:
cannot touch '/var/log/clamav/clamav.log': No such file or directory
dpkg: error processing package clamav-daemon (--configure): installed
clamav-daemon package post-installation script subprocess returned
error exit status 1 Errors were encountered while processing:
clamav-daemon E: Sub-process /usr/bin/dpkg returned an error code (1)
任何想法如何解决这一问题?
多谢你们...
答案1
可能是权限问题或安装程序有缺陷,请尝试通过首先创建此文件夹来帮助安装程序
sudo mkdir -p /var/log/clamav/
然后运行
sudo apt-get install --reinstall clamav-daemon