Package upgrade hung during setup of power-profiles-daemon

Yesterday, I was applying updates to two machines running Ubuntu 24.04 (Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-138-generic x86_64): $ sudo apt update $ sudo apt upgrade and the update process hung/got stuck on both machines during the setup of the power-profiles-daemon (version 0.21-1ubuntu2 ). I resolved the hung installation setup process by killing dpkg and by editing the file…