First apologies for this issue going unaddressed for so long ... the PCP
developers have bug workflows in github, RH, ... and we weren't
monitoring launchpad.
I'm pretty sure this is largely a "container-only" problem because the
recipe to reproduce (which worked for me, thanks for that) leads to a
container with pid 1 being bash (not init or systemd as it is outside a
container). The if you have systemctl(1) or update-rc.d(1) executable
on your $PATH in the container, the PCP post* and pre* scripts get
confused with this half-baked systemd|init setup.
If someone has seen this problem in a non-container situation, I'd be
keen to discover the details.
I've reworked the post* and pre* scripts to accommodate this half-baked
systemd|init scenario, and generally added more guards so the scripts
warn with useful messages rather than having commands exit with non-zero
status and the #!/bin/sh -e leading to the script aborting and botching
the dpkg install/remove.
This has been tested in exactly the same container scenario mentioned in
this bug.
The fixes will be in PCP 7.0.4 (no ETA yet, but this should happen
sooner, rather than later).
I was able to workaround the issue by downloading the Ubuntu pcp .deb,
unpacking it, making small changes to the postinst script, repacking the
.deb and installing the repacked .deb in the container ... let me know
if anyone wants this recipe.
If Canonical needs/wants patches before PCP 7.0.4, please contact me and
we'll sort something out as these scripts are almost version-
independent, so back-porting is low-risk.
** Changed in: pcp (Ubuntu)
Assignee: (unassigned) => Ken McDonell (kenj)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2064784
Title:
Failed to Install pcp Noninteractively
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcp/+bug/2064784/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs