groupadd: cannot lock /etc/gshadow; try again later.
Bug #732864 reported by
Paul Sladen
This bug report is a duplicate of:
Bug #523896: useradd: cannot lock /etc/passwd; try again later..
Edit
Remove
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-
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/
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Changed in qemu (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
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.