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

Scott Kitterman debian at kitterman.com
Fri May 8 12:23:36 UTC 2015


On May 8, 2015 7:43:14 AM EDT, Andreas Cadhalpun <andreas.cadhalpun at googlemail.com> wrote:
>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.

The reports stopped once we fixed the debconf variable name problem, so I don't think so. 

>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?

I suspect it depends. Maybe we could do it based on release rather than version. In squeeze (I intend an LTS upload soon) and in Ubuntu before 15.04 it need never be removed. Ubuntu 15.04 it can always be removed (Ubuntu has never supported multiple init systems).  Maybe then something more careful for wheezy/jessie. 

Scott K



More information about the Pkg-clamav-devel mailing list