----- Original Message ----- From: Eric G . Miller <[email protected]> To: <[email protected]> Sent: Friday, November 03, 2000 10:41 PM Subject: Re: Disappearing ldconfig
> On Sat, Nov 04, 2000 at 03:22:36AM -0500, John Kiff wrote: > > I've been trying to install and upgrade a few packages, and whether I > > use dpkg or apt-get, I ultimately get the following message before the > > whole process grinds to a halt: "'ldconfig' not found in PATH". I > > presume that I have inadvertently removed ldconfig in the course of > > doing something else. My question is how do I get my ldconfig back? > > Instead of assuming ldconfig is missing, why don't you check? It may be > some post-install script is incorrectly setting the $PATH variable. If > it's missing for some reason reinstall libc6 (though I'd suspect a $PATH > error). ls -l /sbin/ldconfig ... > There's no ldconfig in /sbin, or anywhere else, and my $PATH variable includes /sbin, /usr/sbin and /usr/local/sbin. Hence, I tried to reinstall libc6, but as you can see below, I ran into a brick wall. It kind of looks like I'm in a vicious circle. I need to install libc6 to get ldconfig, but I need ldconfig to install libc6. How can I resolve this? John Kiff debian:/var/cache/apt/archives# apt-get install libc6 Reading Package Lists... Done Building Dependency Tree... Done You might want to run `apt-get -f install' to correct these: Sorry, but the following packages have unmet dependencies: libc6-dev: Depends: libc6 (= 2.1.3-10) but 2.1.96-1 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). debian:/var/cache/apt/archives# apt-get install libc6-dev Reading Package Lists... Done Building Dependency Tree... Done You might want to run `apt-get -f install' to correct these: Sorry, but the following packages have unmet dependencies: libart2: Depends: libc6 (>= 2.1.94) but 2.1.3-10 is to be installed libc6-dev: Depends: libc6 (= 2.1.96-1) but 2.1.3-10 is to be installed libdb2: Depends: libc6 (>= 2.1.94) but 2.1.3-10 is to be installed libdb2-util: Depends: libc6 (>= 2.1.94) but 2.1.3-10 is to be installed libnss-db: Depends: libc6 (>= 2.1.93) but 2.1.3-10 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). debian:/var/cache/apt/archives# apt-get -f install Reading Package Lists... Done Building Dependency Tree... Done Correcting dependencies... Done The following extra packages will be installed: libc6 libc6-dev 2 packages upgraded, 0 newly installed, 0 to remove and 152 not upgraded. 5 packages not fully installed or removed. Need to get 0B/4576kB of archives. After unpacking 4354kB will be freed. Do you want to continue? [Y/n] Y 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. E: Sub-process /usr/bin/dpkg returned an error code (2) debian:/var/cache/apt/archives# dpkg --install libc6_2.1.3-10_i386.deb 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.

