Comment 4 for bug 329629

Revision history for this message
fsando (fsando) wrote :

I guess this affects me too.

I installed bacula trying to make it use postgres instead of mysql. There were some errors during installation that I did not pay enough attention to. I decided to remove all to get a clean slate but ended up with a broken package that could not be repaired.

Installation was not possible and removal wasn't possible either - I got this:

#----------------------------------------------
Removing bacula-director-pgsql ...
invoke-rc.d: unknown initscript, /etc/init.d/bacula-director not found. <==== THIS IS THE CULPRIT
dpkg: error processing bacula-director-pgsql (--purge):
 subprocess installed pre-removal script returned error exit status 100
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 bacula-director-pgsql
E: Sub-process /usr/bin/dpkg returned an error code (1)
#----------------------------------------------

I finally solved it by creating an empty file:
$ touch /etc/init.d/bacula-director

After this everything ran smoothly