Debian Planet










Welcome to Debian Planet

Search

Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (español)

  • DebianWorld

    (français)

  • MaximumDebian

    (Italiano)

  • DebianUsers

    (Korean)

  • Debian-BR

    (Português)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by Xinit Systems and kieser.net.

    Domains paid for and hosted by uklinux.net.

    Buy your Debian merchandise at DebianShop.com.

    Who's Online

    There are currently, 55 guest(s) and 3 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      
    Ldconfig blues (left my system and me wanting it back)
    Contributed by Terence on Monday, August 06 @ 09:58:10 BST

    Ask Debianplanet
    I was trying to install some nifty software but it demanded a higher version of libc6, so I put 2.2.5 on my potato system (offically a "testing" package >=5 ). But then I didn't like what it was doing with the dependencies, so I tried to downgrade to the more stable libc6 2.1.8.

    Boy, did I cook myself. My system still breathes, but I can't get dpkg to successfully complete the configuration of libc6, much less get dpkg to work - period. The problem is that it gives me a message about not finding "ldconfig" in the root path. I did a search on my system for this file and it is gone.

    How can I get ldconfig back on my system? Does anyone have a simple copy of this binary that I can drop into my root path? I can't use dpkg or similiar programs until I get it back.

     
    Related Links

  • More about Ask Debianplanet
  • News by rob

    Most read story about Ask Debianplanet:
    XFree86 4.2.0

    Last news about Ask Debianplanet:

    Printer Friendly Page  Send this Story to a Friend
  • "Ldconfig blues (left my system and me wanting it back)" | Login/Create Account | 11 comments
    Threshold


    The comments are owned by the poster. We aren't responsible for their content.

    Re: Ldconfig blues (left my system and me wanting it back) (Score: 1)
    by kezdeth (kezdeth@lycos.com) on Monday, August 06 @ 10:25:20 BST
    (User Info)

    Yes, I have that binary, and it belongs in /sbin. I can happily compress it and make it available to you, either via email or, if you prefer, I can create a user account on my machine for you and you can use scp to grab it. Let me know if this helps, and how you want to have the file sent to you, namely email me at dolt@elbereth.skie.cx as to what you want to do, and I will respond from my more normal email account (the one I listed here is a spam trap normally, but I don't want to post my normal addy for fear of being spammed.)

    [ Reply ]


    Re: Ldconfig blues (left my system and me wanting it back) (Score: 1)
    by DarthAggie on Monday, August 06 @ 13:37:29 BST
    (User Info)

    To generically find which package has which file, you can alway sturn to:

    http://www.debian.org/distrib/packages

    Now, ldconfig is in the libc package. There are a couple of approaches you can take at this point. Less mucking around is probably better...so, what you want to do is manually unpack libc*.deb, and you do it like so:

    # mkdir /root/recover

    # cd /root/recover

    # ar x /var/cache/apt/archives/libc*.deb

    You'll end up with three files: control.tar.gz, data.tar.gz and debian-binary. Unpack data.tar.gz in the standard way. You'll end up with a file /root/recover/sbin/ldconfig. Copy that to /sbin/,

    and see if dpkg will run to completion. It might. It might not. Keep adding stuff until dpkg can right itself and do the proper house keeping.

    Oh, and I wouldn't accept binaries from random strangers in the email...it's a generous offer, but you shouldn't take binaries unless you know the person and trust them.

    [ Reply ]


    Re: Ldconfig blues (left my system and me wanting it back) (Score: 1)
    by Terence on Monday, August 06 @ 22:27:57 BST
    (User Info)

    Thanks, everyone.

    The day after I submitted this post, I did a search on "ldconfig" at Debian's website. It pointed to the "ldso" library, I believe. Anyway, I downloaded the source tarball, did a "make" (which wasn't completely successful, but managed to compile the ldconfig binary nonetheless), and moved ldconfig in the root path. The system came back to operation and I was able to complete my installation of libc6.

    Take care.

    [ Reply ]


    Why not reinstall? (Score: 0)
    by Anonymous on Tuesday, August 07 @ 07:21:13 BST

    It seems considerably easier and safer just to backup the configuration files and a list of installed packages in a safe place and reinstall. If the network is still up, you coudl load the root tarball from that and run LILO. I think you'd be back to "testing" or "unstable" in 30 minutes.

    [ Reply ]


    Re: Ldconfig blues (left my system and me wanting it back) (Score: 0)
    by Anonymous on Tuesday, August 07 @ 12:16:02 BST

    I solved the same sort of problem ;upgrade from

    potato ( reiserfs-disks) to unstable ,

    by using

    dpkg -i --force-depends /var/cache/apt/archive/libc6-x.deb

    x being your version , then

    apt-get -f install

    ( whitout package names ! , to settle the dependencies)

    then "Install" in dselect

    But of couse dpkg was still worked for me ,so this may not be

    the solution for you.

    [ Reply ]


    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.