I successfully setup PMG on a Debian 10 and got it running so far.
First, clamav-freshclam failed so I removed apparmor service (as explained in the forum) and rebooted the machine. Now clamav-freshclam works fine but the clamav-daemon stops after about 30 seconds with the following error message
Oct 04 11:23:01 mars.maitra.biz systemd[1]: Starting Clam AntiVirus userspace daemon...
Oct 04 11:23:01 mars.maitra.biz systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Received 0 file descriptor(s) from systemd.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: clamd daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Running as user clamav (UID 109, GID 116)
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Log file size limited to 4294967295 bytes.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Reading databases from /var/lib/clamav/
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Not loading PUA signatures.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Bytecode: Security mode set to "TrustSigned".
Oct 04 11:23:45 mars.maitra.biz systemd[1]: clamav-daemon.service: Main process exited, code=killed, status=9/KILL
Oct 04 11:23:45 mars.maitra.biz systemd[1]: clamav-daemon.service: Failed with result 'signal'.
Oct 04 11:32:45 mars.maitra.biz systemd[1]: Starting Clam AntiVirus userspace daemon...
Oct 04 11:32:45 mars.maitra.biz mkdir[5222]: /bin/mkdir: cannot create directory â/run/clamavâ: File exists
Oct 04 11:32:45 mars.maitra.biz systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 04 11:33:19 mars.maitra.biz systemd[1]: clamav-daemon.service: Main process exited, code=killed, status=9/KILL
Oct 04 11:33:19 mars.maitra.biz systemd[1]: clamav-daemon.service: Failed with result 'signal'.
Reinstall apparmor didn't fix the problem.
Any help would be greatly appreciated. Many thanks in advance
Jens
First, clamav-freshclam failed so I removed apparmor service (as explained in the forum) and rebooted the machine. Now clamav-freshclam works fine but the clamav-daemon stops after about 30 seconds with the following error message
Oct 04 11:23:01 mars.maitra.biz systemd[1]: Starting Clam AntiVirus userspace daemon...
Oct 04 11:23:01 mars.maitra.biz systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Received 0 file descriptor(s) from systemd.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: clamd daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Running as user clamav (UID 109, GID 116)
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Log file size limited to 4294967295 bytes.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Reading databases from /var/lib/clamav/
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Not loading PUA signatures.
Oct 04 11:23:01 mars.maitra.biz clamd[830]: Bytecode: Security mode set to "TrustSigned".
Oct 04 11:23:45 mars.maitra.biz systemd[1]: clamav-daemon.service: Main process exited, code=killed, status=9/KILL
Oct 04 11:23:45 mars.maitra.biz systemd[1]: clamav-daemon.service: Failed with result 'signal'.
Oct 04 11:32:45 mars.maitra.biz systemd[1]: Starting Clam AntiVirus userspace daemon...
Oct 04 11:32:45 mars.maitra.biz mkdir[5222]: /bin/mkdir: cannot create directory â/run/clamavâ: File exists
Oct 04 11:32:45 mars.maitra.biz systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 04 11:33:19 mars.maitra.biz systemd[1]: clamav-daemon.service: Main process exited, code=killed, status=9/KILL
Oct 04 11:33:19 mars.maitra.biz systemd[1]: clamav-daemon.service: Failed with result 'signal'.
Reinstall apparmor didn't fix the problem.
Any help would be greatly appreciated. Many thanks in advance
Jens