I tried to install bacula/9.4.2-2ubuntu4 in a clean Ubuntu Focal LXD
container and got this exactly failure. As you can see this is the part
of the log relevant for this issue:
Setting up bacula-sd (9.4.2-2ubuntu3) ...
/var/lib/dpkg/info/bacula-sd.postinst: 20: cannot create
/tmp/bacula-sd.conf.ucftmp-FdWyL4UBja: Permission denied
dpkg: error processing package bacula-sd (--configure):
installed bacula-sd package post-installation script subprocess returned error
exit status 2
The bacula-sd postinst script creates a temporary file and tries to use it to
handle the conffile template, replacing the passwords and so on. The problem is
that before adding content to this temporary file it changes its permission and
owner, and after that even root user is not able to modify it (sed command in
line 20).
If you place lines 17 and 18 (chmod and chown) of the bacula-sd postinst
script after the sed command (line 20), and run 'apt install -f' the
installation is finished successfully.
** Changed in: bacula (Ubuntu)
Importance: Undecided => High
** Changed in: bacula (Ubuntu)
Assignee: (unassigned) => Lucas Kanashiro (lucaskanashiro)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861514
Title:
package bacula-sd 9.4.2-2ubuntu3 failed to install/upgrade: installed
bacula-sd package post-installation script subprocess returned error
exit status 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/1861514/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs