ntp-update: Error while configure ntp - error code 1

Bug #317128 reported by go4heartbeat
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: ntp

Richte ntp ein (1:4.2.4p4+dfsg-3ubuntu2.1) ...
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
  -n: not really
  -f: force
dpkg: * Fehler beim Bearbeiten von ntp (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 ntp
E: Sub-process /usr/bin/dpkg returned an error code (1)

* Fehler means Error!

ProblemType: Package
Architecture: i386
Date: Wed Jan 14 14:50:51 2009
DistroRelease: Ubuntu 8.04
ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Package: ntp 1:4.2.4p4+dfsg-3ubuntu2.1
PackageArchitecture: i386
SourcePackage: ntp
Title: package ntp 1:4.2.4p4+dfsg-3ubuntu2.1 failed to install/upgrade: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Uname: Linux 2.6.24-23-generic i686

Revision history for this message
go4heartbeat (go4heartbeat) wrote :
Revision history for this message
Henning Sprang (henning) wrote :

Same here.

After security upgrade (probably multiple upgrade steps at the same time, as the last one is about 8 weeks ago), I got this message at the end of the upgrade, and keep getting it, even though I totally removed ntp and try to reinstall it now.
The package is therefore totally uninstallable, and also unusable.

root@xnote:~# aptitude install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following partially installed packages will be configured:
  ntp
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up ntp (1:4.2.4p4+dfsg-3ubuntu2.1) ...
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
        -n: not really
        -f: force
dpkg: error processing ntp (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ntp
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up ntp (1:4.2.4p4+dfsg-3ubuntu2.1) ...
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
        -n: not really
        -f: force
dpkg: error processing ntp (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-security
  APT policy: (500, 'hardy-security'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-19-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntp depends on:
ii adduser 3.105ubuntu1 add and remove users and groups
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libcap1 1:1.10-14build1 support for getting/setting POSIX.
ii libreadline5 5.2-3build1 GNU readline and history libraries
ii libssl0.9.8 0.9.8g-4ubuntu3.4 SSL shared libraries
ii lsb-base 3.2-4ubuntu1 Linux Standard Base 3.2 init scrip
ii netbase 4.30ubuntu1 Basic TCP/IP networking system
ii sysv-rc 2.86.ds1-38 System-V-like runlevel change mech

Versions of packages ntp recommends:
ii perl 5.8.8-12ubuntu0.4 Larry Wall's Practical Extraction

-- no debconf information

Revision history for this message
Henning Sprang (henning) wrote :

The problem obviously come from line 47 in the postinst script:

 update-rc.d ntp multiuser 23 >/dev/null

The multiuser keyword seems unknown to update-rc.d

Replacing multiuser with "defaults" - I did it manually now by editing /var/lib/dpkg/info/ntp.postinst - lets me install the package properly, or, in this case now, fix the broken install with
apt-get install -f

Revision history for this message
Henning Sprang (henning) wrote :

ah, multiuser was there for a while but has been deprecated:
https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-June/000430.html

Maybe one should grep the whole source tree to make sure it's not used anymore...

Henning Sprang (henning)
Changed in ntp:
status: New → Confirmed
Revision history for this message
go4heartbeat (go4heartbeat) wrote : AW: [Bug 317128] Re: ntp-update: Error while configure ntp - error code 1
  • ntp.postrm Edit (361 bytes, application/octet-stream; name="ntp.postrm")

Hi Henning,

thanks a lot!

I was aktiv to.

At first this:
sudo rm /var/lib/dpkg/info/ntp.postinst
sudo apt-get install --reinstall ntp

then

Tests with something like this:
sudo update-rc.d -f ntp remove
sudo update-rc.d ntp defaults
sudo update-rc.d ntp start 20 2 3 4 5 . stop 20 0 1 6 .
...

No success!

Again this two commands:
rm /var/lib/dpkg/info/ntp.postinst
sudo apt-get install --reinstall ntp

And now the error message is away but I lost the file:
ntp.postinst

Instead of ntp.postinst I have now there a new script named ntp.postrm (please see the appendix!)

Could I let it like it is or shoud I have do go your way?

Thank you and greetings,

Elmar

Elmar Meyer

________________________________
Von: Henning Sprang <email address hidden>
An: <email address hidden>
Gesendet: Samstag, den 17. Januar 2009, 13:55:35 Uhr
Betreff: [Bug 317128] Re: ntp-update: Error while configure ntp - error code 1

** Changed in: ntp (Ubuntu)
       Status: New => Confirmed

--
ntp-update: Error while configure ntp - error code 1
https://bugs.launchpad.net/bugs/317128
You received this bug notification because you are a direct subscriber
of the bug.

Status in “ntp” source package in Ubuntu: Confirmed

Bug description:
Binary package hint: ntp

Richte ntp ein (1:4.2.4p4+dfsg-3ubuntu2.1) ...
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
        -n: not really
        -f: force
dpkg: * Fehler beim Bearbeiten von ntp (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
ntp
E: Sub-process /usr/bin/dpkg returned an error code (1)

* Fehler means Error!

ProblemType: Package
Architecture: i386
Date: Wed Jan 14 14:50:51 2009
DistroRelease: Ubuntu 8.04
ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Package: ntp 1:4.2.4p4+dfsg-3ubuntu2.1
PackageArchitecture: i386
SourcePackage: ntp
Title: package ntp 1:4.2.4p4+dfsg-3ubuntu2.1 failed to install/upgrade: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Uname: Linux 2.6.24-23-generic i686

Revision history for this message
Henning Sprang (henning) wrote : Re: [Bug 317128] Re: ntp-update: Error while configure ntp - error code 1

On Sat, Jan 17, 2009 at 10:18 PM, go4heartbeat <email address hidden> wrote:
> Could I let it like it is or shoud I have do go your way?

If I understand your way correctly, you are deleting a file completely
instead of fixing it.
I'd rather go with fixing it ;)
But if it works for you now, you can keep it as it is - onloy for the
next time, if the problem is not fixed in the next version of ntp, you
could try my solution.

Revision history for this message
go4heartbeat (go4heartbeat) wrote : AW: [Bug 317128] Re: ntp-update: Error while configure ntp - error code 1

Hi Henning,

thank you!

Yes, it works in your way!

Bye,

Elmar

Gesendet: Samstag, den 17. Januar 2009, 23:01:10 Uhr
Betreff: Re: [Bug 317128] Re: ntp-update: Error while configure ntp - error code 1

On Sat, Jan 17, 2009 at 10:18 PM, go4heartbeat <email address hidden> wrote:
> Could I let it like it is or shoud I have do go your way?

If I understand your way correctly, you are deleting a file completely
instead of fixing it.
I'd rather go with fixing it ;)
But if it works for you now, you can keep it as it is - onloy for the
next time, if the problem is not fixed in the next version of ntp, you
could try my solution.

--
ntp-update: Error while configure ntp - error code 1
https://bugs.launchpad.net/bugs/317128
You received this bug notification because you are a direct subscriber
of the bug.

Status in “ntp” source package in Ubuntu: Confirmed

Bug description:
Binary package hint: ntp

Richte ntp ein (1:4.2.4p4+dfsg-3ubuntu2.1) ...
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
        -n: not really
        -f: force
dpkg: * Fehler beim Bearbeiten von ntp (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
ntp
E: Sub-process /usr/bin/dpkg returned an error code (1)

* Fehler means Error!

ProblemType: Package
Architecture: i386
Date: Wed Jan 14 14:50:51 2009
DistroRelease: Ubuntu 8.04
ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Package: ntp 1:4.2.4p4+dfsg-3ubuntu2.1
PackageArchitecture: i386
SourcePackage: ntp
Title: package ntp 1:4.2.4p4+dfsg-3ubuntu2.1 failed to install/upgrade: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Uname: Linux 2.6.24-23-generic i686

Changed in ntp (Ubuntu):
importance: Undecided → Low
Revision history for this message
Victor Vargas (kamus) wrote :

I have installed ntp 1:4.2.4p4+dfsg-3ubuntu2.2 recently. Installation and scripts works fine here (8.04 up to date), could you try to upgrade your system and check if this issue is still present?

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

This should be fixed for lucid.

Regards
chuck

Changed in ntp (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
pfaffman (pfaffman) wrote :

This same bug affects pulseaudio and cron. I replaced multiuser with defaults in their postinst files and made similar errors go away.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

From the Dependencies.txt of the original report the version of sysv-rc is 2.86.ds1-38+etchnhalf.1 and obviously not the one provided by Ubuntu.
Seen recently in bug 504500 and confirmed by reporter.

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.