** Description changed:

+ [ Impact ]
+ 
+   * APT is broken when user installs and removes ubuntu-helper-virt-hwe
+ 
+ [ Test Plan ]
+ 
+  $ sudo apt install ubuntu-helper-virt-hwe
+  $ sudo apt remove ubuntu-helper-virt-hwe
+  $ sudo apt install hello
+ Output:
+ ...
+ Error: Sub-process /usr/bin/apt_hook_ubuntu_virt returned an error code (127)
+ Error: Failure running script /usr/bin/apt_hook_ubuntu_virt
+    
+ [ Where problems could occur ]
+ 
+  This fix the APT hook of the HWE virt stack
+  Even if the call to the hook helper is now hardened, if there is any 
+  regression, I would expect it to be related to the hook invocation.
+  
+ [ Other Info ]
+ 
+  N/A
+ 
+ Original bug report
+ ----
  Package: ubuntu-helper-virt-hwe
  Version: 1:10.2.1+ds-1ubuntu4
  
  The package ubuntu-helper-virt-hwe installs a hook to Apt
  (/etc/apt/apt.conf.d/99-ubuntu-virt.conf) which is not properly removed
  when this package is removed. The workaround is to either immediately
  purge the package while it is still installed or to manually remove the
  Apt hook. Removing and then purging does not work.
  
  Steps to reproduce:
  
  sudo apt install ubuntu-helper-virt-hwe
  sudo apt remove ubuntu-helper-virt-hwe
  sudo apt install hello
  
  Output:
  ...
  Error: Sub-process /usr/bin/apt_hook_ubuntu_virt returned an error code (127)
  Error: Failure running script /usr/bin/apt_hook_ubuntu_virt
  
  Workaround 1:
  sudo rm /etc/apt/apt.conf.d/99-ubuntu-virt.conf
  sudo apt purge ubuntu-helper-virt-hwe
  sudo apt install hello
  
  Workaround 2:
  sudo apt install ubuntu-helper-virt-hwe
  sudo apt purge ubuntu-helper-virt-hwe
  sudo apt install hello

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

Title:
  Removing package ubuntu-helper-virt-hwe breaks Apt

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


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

Reply via email to