LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-08-2010, 02:06 PM   #1
samoverduin
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Unhappy libc6 upgrade resulting in 'ldconfig' not found on PATH


Hi,

I just tried installing another version of libc6 (2.10.2-6) with kpackage. It didn't work so I had a broken package on my system. I then wanted to fix it with synaptic package manager which then told me in order to remove it, I had to pretty much uninstall all of linux. I then tried installing the older version of libc6 (the one I'm supposed to have: 2.7-18lenny2). That gave me the error code

dpkg -i '///home/sam/torrents/libc6_2.7-18lenny2_i386.deb' ;echo RESULT=$?
dpkg: `ldconfig' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
RESULT=2

I already checked my path and it was:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
(I found it with echo $PATH)

Has anybody got any idea what to do? I guess my path is okay so the problem is in ldconfig but how can I get ldconfig in the path and where could it be now?

I have lenny at the moment and am a bit of a newbie (I guess messing around with libc6 is one of the more stupid things to do)
 
Old 03-08-2010, 02:36 PM   #2
samoverduin
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
okay I found the problem and the solution. With the reinstallation of the other version ldconfig was removed and then it could not complete the install because of failed dependancies. I found the solution:

1. Get hold of ldconfig & ldconfig.real from the correct version:
Code:

aptitude download libc6

unpack it:
Code:

dpkg-deb -x libc6*.deb libc6-unpacked/

copy them out:
Code:

sudo cp libc6-unpacked/sbin/ldconfig* /sbin/

At this point I did:
Code:

sudo apt-get -f install
sudo dpkg-reconfigure libc6
sudo dpkg-reconfigure libc6-i386
sudo apt-get install --reinstall libc6
sudo apt-get install --reinstall libc6-i386

I changed around the versions a little and had to add a line to sources.list but it solved my problem
 
Old 03-09-2010, 10:29 AM   #3
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 102

Rep: Reputation: 17
Angry

Quote:
Originally Posted by samoverduin View Post
Hi,
I just tried installing another version of libc6 (2.10.2-6) with kpackage. It didn't work so I had a broken package on my system. I then wanted to fix it with synaptic package manager...
I have lenny at the moment and am a bit of a newbie (I guess messing around with libc6 is one of the more stupid things to do)
And in your solution half an hour later you used aptitude.
Well, mixing even 2 install-managers inevitably leads sooner or later (Murphy's Law says sooner) to a big mess. And you mixed 3 of them!
Debian recommends for all install-, update-, upgrade- or uninstall-activities aptitude. And they have a very good reason for that! Aptitude is so sophisticated in handling all dependencies, that it is nearly impossible to mess-up a properly installed and running system.
Oh yes, it is possible to some extent: uninstall one of the metapackages, f.i. KDE, neglect the warnings of aptitude and then press "g"... well you're left with a running barebone-system but as a Linux-newbie you sincerely won't like it
 
  


Reply

Tags
ldconfig, path


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Please Help Getting mad! Installing wxwidgets... need to add a path to ldconfig...?? morty346 Programming 23 12-02-2009 04:52 PM
DSSI "path not found" after upgrade to Etch farpoint Debian 4 03-20-2007 02:10 PM
.so not found after ldconfig and setting LD path Hoju2468 Linux - Software 1 07-20-2006 09:16 AM
libstdc++-libc6.2.2.so.3 not found dennisparrott Linux - Software 3 01-24-2005 06:10 AM
ldconfig command not found Draylath Linux - Newbie 5 06-23-2004 04:30 PM


All times are GMT -5. The time now is 02:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration