#1100396 clamav-freshclam: systemd service is never enabled

Package:
clamav-freshclam
Source:
clamav-freshclam
Description:
anti-virus utility for Unix - virus database update utility
Submitter:
Raphaël Halimi
Date:
2026-06-23 18:07:02 UTC
Severity:
normal
#1100396#5
Date:
2025-03-13 10:33:05 UTC
From:
To:
Dear developers,

clamav-freshclam's postinst script uses `update-rc.d` and `invoke-rc.d`
commands, which prevents `debhelper` to add the right
`deb-systemd-helper` commands to enable the service (which AFAIK
*should* be done by `update-rc.d`, but for a reason I didn't dig into,
is not).

Intuitively I'd say that the solution is to complete the `update-rc.d`
and `invoke-rc.d` with their `deb-systemd-helper` counterparts in the
maintainer scripts, mimicking what `debhelper` would do.

Another solution would be to simply remove all occurrences of those
calls (including DO_RUN_AS_EVALUATION in the postinst) and let
`debhelper` do its job, since it seems that both the systemd service and
the SysV init script correctly handle the cron case, and the ifupdown
script correctly handles the daemon case (but I'm not sure about the
other combinations).

Or just plainly remove ifupdown, cron and manual methods, letting the
daemon just start when the network becomes available.

Setting the severity as important because it renders the package useless
(the service never starts after the first reboot, so the signatures are
never updated after that), though IMHO it should be set as critical
since, as the signatures would quickly become obsolete, it gives the
user a false sense of security.

This should also IMHO qualify for the fix to be propagated to stable by
a security update.

Regards,

#1100396#10
Date:
2025-04-15 16:01:52 UTC
From:
To:
Hi,

I also managed to reproduce this issue - and think it might be related to:
https://salsa.debian.org/clamav-team/clamav/-/commit/0600f9ad575e1c64e391be4835515c331ac52fc2
(the change only enables/starts clamav-daemon, no mention of
clamav-freshclam).

In a quick local test the change from:
https://salsa.debian.org/clamav-team/clamav/-/merge_requests/7
seems to fix the issue for me locally.

I'd agree with Raphaël that this should probably be made available for all
supported versions (bookworm, and soon trixie)

Best,
stoiko

#1100396#15
Date:
2026-06-23 18:04:39 UTC
From:
To:
On 2025-03-13 11:33:05 [+0100], Raphaël Halimi wrote:
…

So I just got to this again and the current version is newer. Did I fix
this or is still outstanding?

Sebastian