package ntp 1:4.2.6.p3+dfsg-1ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #991354 reported by Stephen Rodd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

any advice how best to resolve this these issues on my install?
Thank you for your time

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: ntp 1:4.2.6.p3+dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Sun Apr 29 13:44:38 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
NtpStatus: ntpq: read: Connection refused
ProcCmdline: root=UUID=ea6b338a-3b2f-40ce-a549-ced9c4624ceb ro quiet splash
SourcePackage: ntp
Title: package ntp 1:4.2.6.p3+dfsg-1ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-04-28 (0 days ago)

Revision history for this message
Stephen Rodd (stephenr) wrote :
Revision history for this message
James Page (james-page) wrote :

Registering documents with scrollkeeper...
Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /home/ntp -g ntp -s /bin/false -u 128 ntp' returned error code 1. Exiting.
chown: invalid user: `ntp:ntp'
dpkg: error processing ntp (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up whoopsie (0.1.32) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /nonexistent -g whoopsie -s /bin/false -u 128 whoopsie' returned error code 1. Exiting.
dpkg: error processing whoopsie (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libvirt-bin (0.9.8-2ubuntu17) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /var/lib/libvirt/dnsmasq -g libvirtd -s /bin/false -u 128 libvirt-dnsmasq' returned error code 1. Exiting.
dpkg: error processing libvirt-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ntp
 whoopsie
 libvirt-bin
Log ended: 2012-04-29 13:44:38

Revision history for this message
James Page (james-page) wrote :

Hi Stephen

Thanks for taking the time to report this bug in Ubuntu.

Looks like something has left some .lock files in place on the files used for user management. This does happen from time-to-time.

Have a look in /etc/ for any files ending in *.lock and remove them if they are present - the following should be safe to remove:

   passwd.lock
   shadow.lock
   group.lock

Thanks

Revision history for this message
James Page (james-page) wrote :

Oh - and you should them be able to complete you install using:

   sudo apt-get -f install.

Changed in ntp (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
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.