package ntp 1:4.2.4p6+dfsg-1ubuntu5.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #494968 reported by braoult
76
This bug affects 15 people
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ntp

I am running Koala, and every time I make a package update (whatever
the package is), I get the following error:

   Setting up ntp (1:4.2.4p6+dfsg-1ubuntu5.1) ...
   chown: invalid group: `ntp:ntp'
   dpkg: error processing ntp (--configure):
   subprocess installed post-installation script returned error exit status 1

Interesting is:

   $ grep ntp /etc/passwd
   ntp:x:112:124::/home/ntp:/bin/false
   $ grep ntp /etc/group
   $ grep 124 /etc/group
   postdrop:x:124:

Group "ntp" does not exist. Could it be that the install script tried to create
this group with an already existing gid ("postdrop")?

ProblemType: Package
Architecture: amd64
Date: Wed Dec 9 07:55:44 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: ntp 1:4.2.4p6+dfsg-1ubuntu5.1
ProcVersionSignature: Ubuntu 2.6.31-16.52-generic
SourcePackage: ntp
Title: package ntp 1:4.2.4p6+dfsg-1ubuntu5.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-16-generic x86_64

Revision history for this message
braoult (braoult) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the bug report, as a work around for now you do the following:

sudo addgroup ntp

Ill have a look at this again for lucid.

Regards
chuck

Changed in ntp (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
braoult (braoult) wrote :

Hi Chuck,

Thanks, I don't get anymore the error after adding the group. However, the user "ntp" does not belong to this group.

Regards,

Bruno.

Revision history for this message
Thierry Carrez (ttx) wrote :

postinst has:

adduser --system --quiet --group --no-create-home ntp || :
chown -R ntp:ntp /var/lib/ntp /var/log/ntpstats

If adduser fails for any reason (and with "--quiet" and "|| :" it's hard to know), then chown would fail.
Can you (or any of the 9 people affected by this bug) reproduce after purging and reinstalling the package ?

sudo apt-get purge ntp
sudo apt-get install ntp

Revision history for this message
kabsi (i41b-1aunchpad-0ut-hpgu) wrote :

# apt-get purge ntp
# apt-get install ntp

worked for me. (ubuntu 11.10 upgrade)

Doing remove instead of purge was not enough.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I know it's a long time, but I'm cleaning up old NTP bugs atm.

This is actually fixed a long time ago in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624275
And in Ubuntu due to the merge following that (Q).

Setting fix released to properly reflect the status

Changed in ntp (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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