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
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:
#------ ------- ------- ------- ------- ------- ----- director- pgsql ... d/bacula- director not found. <==== THIS IS THE CULPRIT director- pgsql (--purge): director- pgsql ------- ------- ------- ------- ------- -----
Removing bacula-
invoke-rc.d: unknown initscript, /etc/init.
dpkg: error processing bacula-
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-
E: Sub-process /usr/bin/dpkg returned an error code (1)
#------
I finally solved it by creating an empty file: d/bacula- director
$ touch /etc/init.
After this everything ran smoothly