Public bug reported:

If we switch from libvirt-daemon to libvirt-daemon-hwe with removal +
purge of libvirt-daemon

The "libvirt-daemon.postrm purge" hangs:

root       68144  0.1  0.2 113708 88776 pts/0    S+   12:25   0:01              
\_ apt-get -q --assume-yes --allow-unauthenticated -o Dpkg::Use-Pty=0 -o 
Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold remove 
--purge libvirt-daemon-system
root       70080  0.0  0.0  36624 32100 pts/0    S+   12:26   0:00              
    \_ /usr/bin/dpkg --force-confdef --force-confold --status-fd 47 
--no-triggers --purge --pending
root       70081  0.0  0.0   2888  1936 pts/0    S+   12:26   0:00              
        \_ sh -c -- (test -x /usr/lib/needrestart/dpkg-status && 
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
root       70082  0.0  0.0   2888   916 pts/0    S+   12:26   0:00              
        |   \_ sh -c -- (test -x /usr/lib/needrestart/dpkg-status && 
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
root       70083  0.0  0.0   2888  1940 pts/0    S+   12:26   0:00              
        |       \_ /bin/sh /usr/lib/needrestart/dpkg-status
root       70531  0.0  0.0   2888  1944 pts/0    S+   12:26   0:00              
        \_ /bin/sh /var/lib/dpkg/info/libvirt-daemon.postrm purge

Steps to reproduce
---

On Ubuntu 26.04

$ apt install libvirt-daemon-system
$ apt remove ---purge libvirt-daemon-system libvirt-daemon-system-hwe+
(libvirt-daemon-system-hwe+ : we want to install libvirt-daemon-system-hwe at 
the same time)

...
Purging configuration files for libvirt-daemon-driver-nodedev 
(12.0.0-1ubuntu5.3) ...
Purging configuration files for libvirt-daemon-driver-storage 
(12.0.0-1ubuntu5.3) ...
Purging configuration files for libvirt-daemon-lock (12.0.0-1ubuntu5.3) ...
Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 12.
Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 12.
Purging configuration files for libvirt0:amd64 (12.0.0-1ubuntu5.3) ...
Purging configuration files for libvirt-daemon-system (12.0.0-1ubuntu5.3) ...
Purging configuration files for libvirt-daemon-driver-interface 
(12.0.0-1ubuntu5.3) ...
Purging configuration files for libvirt-daemon (12.0.0-1ubuntu5.3) ...
Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
...

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  If we switch from libvirt-daemon to libvirt-daemon-hwe with removal +
  purge of libvirt-daemon
  
  The "libvirt-daemon.postrm purge" hangs:
  
  root       68144  0.1  0.2 113708 88776 pts/0    S+   12:25   0:01            
  \_ apt-get -q --assume-yes --allow-unauthenticated -o Dpkg::Use-Pty=0 -o 
Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold remove 
--purge libvirt-daemon-system
  root       70080  0.0  0.0  36624 32100 pts/0    S+   12:26   0:00            
      \_ /usr/bin/dpkg --force-confdef --force-confold --status-fd 47 
--no-triggers --purge --pending
  root       70081  0.0  0.0   2888  1936 pts/0    S+   12:26   0:00            
          \_ sh -c -- (test -x /usr/lib/needrestart/dpkg-status && 
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
  root       70082  0.0  0.0   2888   916 pts/0    S+   12:26   0:00            
          |   \_ sh -c -- (test -x /usr/lib/needrestart/dpkg-status && 
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
  root       70083  0.0  0.0   2888  1940 pts/0    S+   12:26   0:00            
          |       \_ /bin/sh /usr/lib/needrestart/dpkg-status
  root       70531  0.0  0.0   2888  1944 pts/0    S+   12:26   0:00            
          \_ /bin/sh /var/lib/dpkg/info/libvirt-daemon.postrm purge
  
- 
  Steps to reproduce
  ---
  
  On Ubuntu 26.04
  
  $ apt install libvirt-daemon-system
  $ apt remove ---purge libvirt-daemon-system libvirt-daemon-system-hwe+
- (libvirt-daemon-system-hwe+ : we want to install libvirt-daemon-system-hwe+ 
at the same time)
+ (libvirt-daemon-system-hwe+ : we want to install libvirt-daemon-system-hwe at 
the same time)
  
  ...
  Purging configuration files for libvirt-daemon-driver-nodedev 
(12.0.0-1ubuntu5.3) ...
  Purging configuration files for libvirt-daemon-driver-storage 
(12.0.0-1ubuntu5.3) ...
  Purging configuration files for libvirt-daemon-lock (12.0.0-1ubuntu5.3) ...
  Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
  Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
  Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 12.
  Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 12.
  Purging configuration files for libvirt0:amd64 (12.0.0-1ubuntu5.3) ...
  Purging configuration files for libvirt-daemon-system (12.0.0-1ubuntu5.3) ...
  Purging configuration files for libvirt-daemon-driver-interface 
(12.0.0-1ubuntu5.3) ...
  Purging configuration files for libvirt-daemon (12.0.0-1ubuntu5.3) ...
  Deep recursion on subroutine "main::remove_links" at 
/usr/bin/deb-systemd-helper line 488, <$fh> line 14.
  ...

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

Title:
  purging libvirt-daemon hangs if libvirt-daemon-hwe is installed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2164744/+subscriptions


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

Reply via email to