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.