[Pkg-clamav-devel] "[FAIL] freshclam: Can not continue with PidFile not set ... failed!"

Phillip Pi philpi at earthlink.net
Tue Oct 21 15:17:18 UTC 2014


I noticed /etc/clamav/freshclam.conf didn't exist so I did a "cp 
/var/lib/dpkg/info/clamav-freshclam.config /etc/clamav/freshclam.conf" 
and added "PidFile /var/run/clamav/freshclam.pid" line to the bottom of 
the copied file. However, it still failed with a new error:

# apt-get purge clamav-freshclam
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
   clamav-freshclam*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 552 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 252678 files and directories currently installed.)
Removing clamav-freshclam ...
/etc/init.d/clamav-freshclam: 154: export: .: bad variable name
invoke-rc.d: initscript clamav-freshclam, action "stop" failed.
dpkg: error processing clamav-freshclam (--purge):
  subprocess installed pre-removal script returned error exit status 2
/var/lib/dpkg/info/clamav-freshclam.config: 138: export: .: bad variable 
name
dpkg: error while cleaning up:
  subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
  clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)


On 10/21/2014 8:10 AM PT, Andreas Cadhalpun typed:

> Hi Phillip,
>
> On 21.10.2014 16:15, Phillip Pi wrote:
>> I hope this is the right place to ask about my issue. How come I am
>> unable to uninstall clamav-freshclam package from my old Debian stable
>> machine? I need to uninstall and reinstall it, from scratch, since I am
>> having problems with it.
>>
>> # apt-get purge clamav-freshclam
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> The following packages will be REMOVED:
>>    clamav-freshclam*
>> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
>> After this operation, 552 kB disk space will be freed.
>> Do you want to continue [Y/n]? y
>> (Reading database ... 252678 files and directories currently installed.)
>> Removing clamav-freshclam ...
>> [FAIL] freshclam: Can not continue with PidFile not set ... failed!
>
> You don't have the PidFile variable set and thus the init script doesn't
> work.
>
> Adding the following line to /etc/clamav/freshclam.conf should solve
> this problem:
> PidFile /var/run/clamav/freshclam.pid
>
>> invoke-rc.d: initscript clamav-freshclam, action "stop" failed.
>> dpkg: error processing clamav-freshclam (--purge):
>>   subprocess installed pre-removal script returned error exit status 6
>> Errors were encountered while processing:
>>   clamav-freshclam
>> E: Sub-process /usr/bin/dpkg returned an error code (1)



More information about the Pkg-clamav-devel mailing list