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

Asked by Thomas Nemeth

Binary package hint: ntp

Here is the english version of the error message :

------8<-------CUT-HERE-----------------------------------------------------------------
ubuntu@ubuntu:~/Desktop$ LC_ALL=C sudo apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up ntp (1:4.2.4p6+dfsg-1ubuntu5.1) ...
 * Starting NTP server ntpd /usr/sbin/ntpd: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
                                                                                      [fail]
invoke-rc.d: initscript ntp, action "start" failed.
dpkg: error processing ntp (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 ntp
E: Sub-process /usr/bin/dpkg returned an error code (1)
------8<-------CUT-HERE-----------------------------------------------------------------

It seems that the libm library is not found by the installation process. But...
ubuntu@ubuntu:~/Desktop$ locate libm | grep .so
/lib/libm-2.10.1.so
/lib/libm.so.6

And also:
ubuntu@ubuntu:~/Desktop$ sudo ldconfig -v | grep libm-
 libm.so.6 -> libm-2.10.1.so
 libm.so.6 -> libm-2.10.1.so

There's more to the problem:
ubuntu@ubuntu:~/Desktop$ ldd /usr/sbin/ntpd
 linux-gate.so.1 => (0x00574000)
 libm.so.6 => not found
 libcrypto.so.0.9.8 => not found
 libcap.so.2 => not found
 libc.so.6 => not found

ProblemType: Package
AptOrdering:
 ntp: Install
 ntp: Configure
Architecture: i386
Date: Sat Dec 12 13:26:05 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 127
LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: ntp 1:4.2.4p6+dfsg-1ubuntu5.1
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: ntp
Title: package ntp 1:4.2.4p6+dfsg-1ubuntu5.1 failed to install/upgrade: le sous-processus script post-installation installé a retourné une erreur de sortie d'état 127
Uname: Linux 2.6.31-14-generic i686

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ntp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Nemeth (tnemeth) said :
#1
Revision history for this message
Chuck Short (zulcss) said :
#2

It looks like you have bigger problems here. Are you running this on a usb drive or something? Can you try the following on the command line:

sudo ldconfig -v

Thanks
chuck

Revision history for this message
Thomas Nemeth (tnemeth) said :
#3

----- "Chuck Short" <email address hidden> wrote :

> It looks like you have bigger problems here. Are you running this on
> a usb drive or something?

    Indeed, it's a usb drive. A Kingston 8GB usb key. I always use it
    to test distros on my computers without burning a CD in order to
    test how well my hardware is supported.

> Can you try the following on the command
> line:
>
> sudo ldconfig -v

    It's in attachment.

> Thanks

    Thanks to you.

Thomas.

Revision history for this message
Chuck Short (zulcss) said :
#4

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#5

On Tue, Mar 16, 2010 at 07:21:28PM -0000, Chuck Short wrote:
> New question #104557 on ntp in ubuntu:
> https://answers.edge.launchpad.net/ubuntu/+source/ntp/+question/104557
>
> Binary package hint: ntp
>
> Here is the english version of the error message :
>
> ------8<-------CUT-HERE-----------------------------------------------------------------
> ubuntu@ubuntu:~/Desktop$ LC_ALL=C sudo apt-get install ntp
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> ntp is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
> 1 not fully installed or removed.

See this is the probelem :) the package doesn't completely get installed so the install doesn't find it

> After this operation, 0B of additional disk space will be used.
> Setting up ntp (1:4.2.4p6+dfsg-1ubuntu5.1) ...
> * Starting NTP server ntpd /usr/sbin/ntpd: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
> [fail]
> invoke-rc.d: initscript ntp, action "start" failed.
> dpkg: error processing ntp (--configure):
> subprocess installed post-installation script returned error exit status 127
> Errors were encountered while processing:
> ntp
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> ------8<-------CUT-HERE-----------------------------------------------------------------
>

Try this:
sudo apt-get purge ntp
Go into your home directory and then delete the hidden file for ntp (.ntp) and then reinstall it also remove libm with purge and then install them over again. This is a dirty hack but it might just work.

> It seems that the libm library is not found by the installation process. But...
> ubuntu@ubuntu:~/Desktop$ locate libm | grep .so
> /lib/libm-2.10.1.so
> /lib/libm.so.6
>
> And also:
> ubuntu@ubuntu:~/Desktop$ sudo ldconfig -v | grep libm-
> libm.so.6 -> libm-2.10.1.so
> libm.so.6 -> libm-2.10.1.so
>
> There's more to the problem:
> ubuntu@ubuntu:~/Desktop$ ldd /usr/sbin/ntpd
> linux-gate.so.1 => (0x00574000)
> libm.so.6 => not found
> libcrypto.so.0.9.8 => not found
> libcap.so.2 => not found
> libc.so.6 => not found

The ones not found here are probably not installed either try these with sudo apt-cache policy <package-name>

--
Regards,
Vikram Dhillon

A Computer Engineer was asked by his five-year-old son: "Dad, what is Windows 95?".
"Well, it's 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand 1 bit of competition."

Can you help with this problem?

Provide an answer of your own, or ask Thomas Nemeth for more information if necessary.

To post a message you must log in.