groupadd: cannot lock /etc/gshadow; try again later.

Bug #732864 reported by Paul Sladen
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
QEMU
New
Undecided
Unassigned
qemu (Ubuntu)
Confirmed
Medium
Unassigned
shadow (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: qemu

Unpacking qemu-kvm (from .../qemu-kvm_0.14.0+noroms-0ubuntu2_i386.deb) ...
groupadd: cannot lock /etc/gshadow; try again later.
addgroup: `/usr/sbin/groupadd -g 125 kvm' returned error code 10. Exiting.
dpkg: error processing /var/cache/apt/archives/qemu-kvm_0.14.0+noroms-0ubuntu2_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

Errors were encountered while processing:
 /var/cache/apt/archives/qemu-kvm_0.14.0+noroms-0ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in qemu (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug and helping to make Ubuntu better.

To work around this and proceed, please first make sure there is no stuck useradd process:

  ps -ef | grep useradd
  ps -ef | grep groupadd

If either of those show results, then please kill the process (reply here if you need help with that).

Then please remove any stale lock files by doing:

  rm -f /etc/passwd.lock /etc/group.lock /etc/gshadow.lock

and then re-try your install or upgrade.

Changed in shadow (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.