[Pkg-clamav-devel] Bug#847640: clamav-freshclam: apt-get remove clamav-freshclam leaves clamav-freshclam.service

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sun Dec 11 23:03:18 UTC 2016


Hi Heinrich,

On 11.12.2016 23:27, Heinrich Schuchardt wrote:
> please, find an installation and removal log below for
> Debian Stretch arm64
> Kernel 4.9-rc8 next-20161209.
> 
> apt-get remove clamav-freshclam creates
> 
> /etc/systemd/system/clamav-freshclam.service
> 
> apt-get purge clamav-freshclam removes it.

Indeed, but this is just a link:
# file /etc/systemd/system/clamav-freshclam.service
/etc/systemd/system/clamav-freshclam.service: symbolic link to /dev/null

This is due to 'deb-systemd-helper mask clamav-freshclam.service >/dev/null',
which dh_systemd_enable adds to the postinst and which should tell systemd
that the service is unavailable.

And looking again at your original report I see:
> systemd[1]: clamav-freshclam.service: Cannot add dependency job, ignoring: Unit clamav-freshclam.service is masked.

That's systemd saying that the service is unavailable.
I think the cause for this log message is that multi-user.target.wants still
contains clamav-freshclam.service.
However all of this is handled by debhelper, so if that's a bug it's in
debhelper, not clamav-freshclam.

Aside from this log message, does it cause any problem?

Best regards,
Andreas



More information about the Pkg-clamav-devel mailing list