[Bug 1729064] Re: package bacula-director-pgsql 7.0.5+dfsg-4ubuntu0.1 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1

Andreas Hasenack andreas at canonical.com
Wed Nov 1 13:57:25 UTC 2017


Thanks for filing this bug in Ubuntu.

I was able to confirm the problem on a fresh xenial container by just
running:

sudo apt install bacula-director-pgsql

That pulls in the postgresql 9.5 server.

What happens is that bacula tries to reach out to postgresql on the
localhost (if you accepted all bacula defaults), but postgresql is being
installed in the same transaction and isn't ready yet. There isn't even
a postgres user at that time. So things fail.

A couple work arounds:
a) first install postgresql-9.5, then bacula-director-pgsql
b) when bacula complains about the database, select abort, and then do "sudo apt install bacula-director-pgsql --reinstall". This time it should finish.

I believe in your case you can just run "sudo apt install --reinstall
bacula-director-pgsql". I would also suggest a "sudo apt install -f" to
be sure there are no remaining errors.


** Changed in: bacula (Ubuntu)
   Importance: Undecided => Medium

** Changed in: bacula (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/1729064

Title:
  package bacula-director-pgsql 7.0.5+dfsg-4ubuntu0.1 failed to
  install/upgrade: sub-processo script post-installation instalado
  retornou estado de saída de erro 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/1729064/+subscriptions



More information about the Ubuntu-server-bugs mailing list