Results 1 to 5 of 5

Thread: Ubuntu Server doesn't upgrade

  1. #1
    Join Date
    Mar 2012
    Beans
    3

    Smile Ubuntu Server doesn't upgrade ('ldconfig' not found in PATH or not executable.)

    Hello all,
    I have a LAMP server and running Ubuntu Server 11.10 on it. I've got this error msg when I want to upgrade my box
    Code:
    root@ibhserver:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages have been kept back:
      linux-generic-pae linux-headers-generic linux-headers-generic-pae linux-image-generic-pae
    The following packages will be upgraded:
      libgudev-1.0-0 libudev0 linux-libc-dev udev
    4 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
    Need to get 0 B/1,272 kB of archives.
    After this operation, 12.3 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    dpkg: warning: 'ldconfig' not found in PATH or not executable.
    dpkg: error: 1 expected program not found in PATH or not executable.
    Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    Last edited by Korn7; April 1st, 2012 at 06:49 PM.

  2. #2
    Join Date
    Nov 2008
    Beans
    Hidden!

  3. #3
    Join Date
    Mar 2012
    Beans
    3

    Re: Ubuntu Server doesn't upgrade

    Yes. Before I do this post, I've Googled but none works for me
    This problem occurred after installing some security apps. But I'm not sure exactly which one is!
    I just want to know another way to find "What is the problem".

  4. #4
    Join Date
    Mar 2012
    Beans
    3

    Re: Ubuntu Server doesn't upgrade

    I solved the problem by copying /etc/ldconfig from another Ubuntu to mine and now works fine! ldconfig file for those who have same problem:
    Code:
    #!/bin/sh
    
    if  test $# = 0                            \
        && test x"$LDCONFIG_NOTRIGGER" = x                \
     && test x"$DPKG_MAINTSCRIPT_PACKAGE" != x            \
     && dpkg-trigger --check-supported 2>/dev/null            \
     && dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.5ubuntu10~~'
    then
        if dpkg-trigger --no-await ldconfig; then
            if test x"$LDCONFIG_TRIGGER_DEBUG" != x; then
                echo "ldconfig: wrapper deferring update (trigger activated)"
            fi
            exit 0
        fi    
    fi
    
    exec /sbin/ldconfig.real "$@"
    Don't forget to execute permission "chmod +x /sbin/ldconfig"

  5. #5
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu Server doesn't upgrade

    Quote Originally Posted by Korn7 View Post
    I solved the problem
    .........
    Then MARK the thread!
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •