package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade: le sous-processus post-installation script a retourné une erreur de sortie d'état 1

Bug #329629 reported by SC4ideal
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: bacula

Une erreur s'est produite

E: bacula-director-pgsql: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
E: bacula-server: problèmes de dépendances - laissé non configuré
E: bacula: problèmes de dépendances - laissé non configuré

psql:<stdin>:2: ERREUR: le rôle « bacula » existe déjà
Ok.
 * Starting Bacula Director:
   ...done.
***********
An error occurred

E: bacula-director-pgsql: the sub-process post-installation script returned error exit status 1
E: bacula-server: dependency problems - leaving unconfigured
E: bacula: dependency problems - leaving unconfigured

psql: <STDIN>: 2: ERROR: role "bacula" already exists
Ok
  * Starting Bacula Director:
    ... done.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
Package: bacula-director-pgsql 2.4.2-1ubuntu6
SourcePackage: bacula
Title: package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
Uname: Linux 2.6.27-7-generic i686

Revision history for this message
SC4ideal (sc4ideal) wrote :
Revision history for this message
Ante Karamatić (ivoks) wrote :

Postgresql wasn't configured/installed before installing bacula-director-pgsql. Running 'dpkg --configure -a' should solve this after upgrade. Have you tried that?

Changed in bacula:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

No response from user.

Changed in bacula (Ubuntu):
status: Incomplete → Invalid
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

Revision history for this message
fsando (fsando) wrote :

UPS forgot, I can't say for certain it's the same bug but THIS is the same bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542774

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.