[Pkg-clamav-devel] Bug#767353: clamav: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Fri May 8 11:43:14 UTC 2015


Hi Chris,

On 08.05.2015 03:39, Christoph Anton Mitterer wrote:
> I'm reopening this for now, since it seems the fix didn't get applied to
> all installations of wheezy during upgrade to jessie.
> 
> AFAIU, part of the solution was to remove:
> PidFile /var/run/clamav/freshclam.pid
> from
> /etc/clamav/freshclam.conf
> which is done by the following snipped from the postinst: 
>   if `dpkg --compare-versions "$2" lt 0.98.5+dfsg-4~`; then
>     # Remove the PidFile variable from the configuration, if it is the
> previous default value.
>     if [ "$PidFile" = "/var/run/clamav/freshclam.pid" ]; then
>       PidFile=''
>     fi
>   fi
> 
> This works fine for wheezy itself, where the version was/is:
> 0.98.5+dfsg-0+deb7u2
> but any site that had enabled e.g. wheezy-updates wouldn't be matched,
> since it already has 0.98.7+dfsg-0+deb7u1 and this version's postinst,
> doesn't apply the necessary changes.

Sigh...

I wonder if the same happened in Ubuntu, which would explain the many
reports similar to #778507.

I see three ways forward:
 a) Basically ignore the remaining cases and tell anyone who asks about
    the warning that he can safely remove the PidFile setting.
 b) Bump the version in the postinst check and hope it works this time.
 c) Remove the version check and unconditionally remove the PidFile
    setting, if it uses the default path.

Does anyone have preferences?

Best regards,
Andreas



More information about the Pkg-clamav-devel mailing list