[Bug 565380] Re: package libvirt-bin 0.7.5-5ubuntu25 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Jamie Strandboge jamie at ubuntu.com
Sat Apr 17 19:32:18 BST 2010


This is the error in question:
Setting up libvirt-bin (0.7.5-5ubuntu25) ...
Installing new version of config file /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper ...
adduser: The user `tester' does not exist.
dpkg: error processing libvirt-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-libvirt (0.7.5-5ubuntu25) ...

This must be caused by the following snippet in libvirt-bin.postinst:
        # Add each admin user to the libvirtd group
        for u in $(grep "^admin:" /etc/group | sed -e "s/^.*://" -e "s/,/ /g"); do
                adduser "$u" libvirtd >/dev/null
        done

It seems you have a 'tester' user that you removed from the system, but
forgot to remove from the 'admin' group. Please adjust your /etc/group
file accordingly. Then you can run 'sudo apt-get -f install ; sudo apt-
get upgrade' to cleanup.

The postinst should probably be adjusted to have:
  adduser "$u" libvirtd >/dev/null || true

** Changed in: libvirt (Ubuntu)
       Status: New => Triaged

** Changed in: libvirt (Ubuntu)
   Importance: Undecided => Low

** Summary changed:

- package libvirt-bin 0.7.5-5ubuntu25 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
+ postinst fails if missing user is in the admin group

-- 
postinst fails if missing user is in the admin group
https://bugs.launchpad.net/bugs/565380
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list