Attached a proposed configuration-only patch that restores the
executable check while preserving APT protocol version 2.

Tested locally and confirmed that:

- The hook receives protocol version 2.
- Subsequent APT transactions complete without missing executable diagnostics 
after removing the helper package.
- The hook works again after reinstalling the package.

The approach relies on APT's current protocol key extraction logic,
using a unique shell variable assignment to avoid collisions with other
hooks.

Feedback on the suitability of this approach would be appreciated. The
modified configuration has been tested directly, but the patched package
has not yet been rebuilt.

** Patch added: "2176161-apt-hook.patch"
   
https://bugs.launchpad.net/ubuntu/+source/qemu-hwe/+bug/2176161/+attachment/6021124/+files/2176161-apt-hook.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2176161

Title:
  [Regression] ubuntu-helper-virt-hwe leaves an active APT hook
  referencing a removed executable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-hwe/+bug/2176161/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to