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

fabrice quenneville fabquenneville at gmail.com
Mon Sep 9 03:51:35 BST 2024


Package: power-profiles-daemon
Version: 0.22-1
Severity: important
X-Debbugs-Cc: fabquenneville at gmail.com

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.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.6-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages power-profiles-daemon depends on:
ii  libc6                  2.40-2
ii  libglib2.0-0t64        2.82.0-1
ii  libgudev-1.0-0         238-5
ii  libpolkit-gobject-1-0  125-2
ii  python3                3.12.5-1
ii  python3-gi             3.48.2-1+b1

power-profiles-daemon recommends no packages.

power-profiles-daemon suggests no packages.

-- no debconf information



More information about the Pkg-freedesktop-maintainers mailing list