postinst fails if missing user is in the admin group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Low
|
Dustin Kirkland | ||
Lucid |
Fix Released
|
Low
|
Dustin Kirkland |
Bug Description
Happened during upgrading Lucid today (Apr 17).
libvirt-bin:
Installed: 0.7.5-5ubuntu25
Candidate: 0.7.5-5ubuntu25
Version table:
*** 0.7.5-5ubuntu25 0
500 http://
100 /var/lib/
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.5-5ubuntu25
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Apr 17 14:53:35 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
SourcePackage: libvirt
Title: package libvirt-bin 0.7.5-5ubuntu25 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Related branches
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Dustin Kirkland (kirkland) |
This is the error in question: d/usr.lib. libvirt. virt-aa- helper ...
Setting up libvirt-bin (0.7.5-5ubuntu25) ...
Installing new version of config file /etc/apparmor.
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:
adduser "$u" libvirtd >/dev/null
# Add each admin user to the libvirtd group
for u in $(grep "^admin:" /etc/group | sed -e "s/^.*://" -e "s/,/ /g"); do
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