postinst fails with addgroup: The group `libvirtd' already exists as a system group.

Bug #273748 reported by Munzir Taha (منذر طه) on 2008-09-23
164
This bug affects 61 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
High
Unassigned

Bug Description

Distributor ID: Ubuntu
Description: Ubuntu intrepid (development branch)
Release: 8.10
Codename: intrepid

$ uname -r
2.6.27-4-generic

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: wl
Package: libvirt-bin 0.4.4-3ubuntu2
SourcePackage: libvirt
Title: package libvirt-bin 0.4.4-3ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-4-generic i686

This problem happened when I tried to install virt-goodies and reported by apport. However, it's now resolved and I cannot reduplicate it. Please close as Fixed or Invalid

Soren Hansen (soren) on 2008-09-26
Changed in libvirt:
status: New → Invalid
falstaff (falstaff) wrote :

I had this error today on a fresh AMD64 installation, just typed sudo aptitude install libvirt-bin

jasun (jasunwurster) wrote :

Install failed for me as well on an AMD64 install

jasun@silver:/var/log$ uname -a
Linux silver 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux

jasun (jasunwurster) wrote :

After reboot I was able to install libvirtd

root@silver:~# apt-get install virt-manager libvirt-bin kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
virt-manager is already the newest version.
libvirt-bin is already the newest version.
kvm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up libvirt-bin (0.4.4-3ubuntu3) ...
addgroup: The group `libvirtd' already exists as a system group. Exiting.
 * Starting libvirt management daemon libvirtd [ OK ]

nate (killersnowgoon) on 2008-12-22
Changed in libvirt:
status: Invalid → Confirmed

Had it here too, but re-running apt-get install libvirt-bin fixed it
Errors were encountered while processing:
 libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
nathan@jaguar:~$ sudo apt-get install libvirt-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
libvirt-bin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up libvirt-bin (0.4.4-3ubuntu3.1) ...
addgroup: The group `libvirtd' already exists as a system group. Exiting.
 * Starting libvirt management daemon libvirtd [ OK ]

Ihor Kaharlichenko (madkinder) wrote :

Got the same problem on Jaunty while upgrading libvirt-bin to 0.6.1-0ubuntu5.1:

E: libvirt-bin: subprocess post-installation script returned error exit status 1

cesar@cesar:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

cesar@cesar:~$ uname -a
Linux cesar 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 x86_64 GNU/Linux

Changed in libvirt (Ubuntu):
importance: Undecided → High
summary: - package libvirt-bin 0.4.4-3ubuntu2 failed to install/upgrade: subprocess
- post-installation script returned error exit status 1
+ postinst fails with addgroup: The group `libvirtd' already exists as a
+ system group.
Changed in libvirt (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
Jamie Strandboge (jdstrand) wrote :

Per this comment in bug #355907:
I can confirm that this is fix-released in Lucid.

In Jaunty, we had:
        if ! getent group libvirt >/dev/null; then
                addgroup --system libvirtd
        fi

Now it's fixed with:

        if ! getent group libvirtd >/dev/null; then
                addgroup --system libvirtd
        fi

Changed in libvirt (Ubuntu):
status: Confirmed → Fix Released
assignee: Jamie Strandboge (jdstrand) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers