unable to remove --purge because initscript expect configfile to exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: clamav
Description: Ubuntu 8.04.3 LTS
Release: 8.04
clamav-daemon 0.95.1+
Did purge in aptitude for all clamav packages.
Expected to uninstall clamav, purging config files.
Got error:
Removing clamav-daemon ...
* There is no configuration file for Clamav.
* Please either dpkg-reconfigure ClamAV daemon, or copy the example from
* /usr/share/
* '/etc/init.
invoke-rc.d: initscript clamav-daemon, action "stop" failed.
Because clamav gets removed before clamav-daemon, so there is no longer any configfile.
/etc/init.
Or the pre/postrm script should ignore it failing.
I can reproduce this only by deleting /etc/clamav/ clamd.conf manually. This configuration file is not in the clamav package, and removing clamav does not remove it. The file gets created on-the-fly after installing packages.
Are you sure you didn't delete the config file by accident, then tried to uninstall the packages? This way that error message appears indeed. But it gives a solution too. Just copy over the example clamd.conf, and all is well.