#1081183 power-profiles-daemon: Upgrade from 0.21-2 to 0.22-1 fails to configure, causing apt and dpkg hang

Package:
power-profiles-daemon
Source:
power-profiles-daemon
Description:
Makes power profiles handling available over D-Bus.
Submitter:
fabrice quenneville
Date:
2024-09-10 02:48:01 UTC
Severity:
normal
#1081183#5
Date:
2024-09-09 02:51:35 UTC
From:
To:
Dear Maintainer,

I encountered an issue when upgrading the `power-profiles-daemon` package from version 0.21-2 to 0.22-1. The upgrade causes the package to hang while configuring, making both `apt` and `dpkg` unusable without manual intervention.

Steps to reproduce:
1. Run `apt update && apt upgrade -y`.
2. The terminal hangs at "Setting up power-profiles-daemon", requiring a forced reboot.
3. After reboot, running `dpkg --configure -a` results in a hang at `power-profiles-daemon`, requiring a `ctrl+c` to skip it and proceed with configuring other packages.

Expected behavior:
- The package should configure successfully during the upgrade.

Actual behavior:
- The terminal hangs when configuring `power-profiles-daemon`. A reboot is necessary to recover, and subsequent attempts to use `apt` or `dpkg` fail until the package is skipped manually.

Additional details:
- `ctrl+c` does not work when `apt` hangs during configuration, only a reboot recovers the system. However, `ctrl+c` works with `dpkg`.
- Every time I attempt to install a new/unrelated package with `apt`, it retries to configure `power-profiles-daemon`, forcing another reboot.
- Running `dpkg-reconfigure power-profiles-daemon` also hangs.

Error message seen after interrupting `dpkg --configure -a`:

```
Setting up power-profiles-daemon (0.22-1) ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148.
dpkg: error processing package power-profiles-daemon (--configure):
installed power-profiles-daemon package post-installation script subprocess was interrupted
```

This issue makes it nearly impossible to use `apt` and `dpkg` without manual intervention after every system reboot.

#1081183#10
Date:
2024-09-10 02:45:13 UTC
From:
To:
Just a mention that I tested this upgrade on a different machine with a
completely different architecture and the update also hung apt on
power-profiles-daemon
out of 400 ish upgraded packages.

Had to also force reboot and dpkg --configure -a

Thanks