Re: dpkg disaster recovery
On Mon, Jan 28, 2002 at 12:49:45PM -0500, Thomas Shemanske wrote:
> Yes, nice hole you've dug... :-)
The nice thing about debian is that there's always someone willing to throw you you a rope :) The unfortunate thing about rope is that if you slip it's all too easy to hang yourself from it ;)
>
> When running a mixed distribution always use apt-get install (since it
> will pull in all the dependencies and install them in the right order).
>
>
> Your current problem is the disappearance of /sbin/ldconfig. Under
> potato, this used to be in a package called ldso?, but under woody, it
> is in libc6. What you need to do is simply get a copy of ldconfig and
> manually place it in /sbin. Check with the potato versions of libc6 and
> ldso for their contents, and install it in /sbin. Then you can continue
> with the apt-get -f install.
>
>
> To extract the ldconfig binary, download the deb files and use the command
>
> dpkg --extract ldso....deb temp_dir (or something like that).
> Perhaps the same with the potato libc6, until you find ldconfig
>
> This should get you going.
>
> Luck
>
> TRS
All nicely fixed and back on track, ta very much. Lesson learnt.
Cheers for your help, Thomas - much appreciated.
>
>
> kar wrote:
>
> >Hi,
> >
> >Perhaps someone could help with my problem:
> >
> >I run potato, but wanted to upgrade the whois from the stable whois_4.4.14.deb to the unstable whois_4.5.19_i386.deb. In order to achieve this, I ran the following commands (to meet the required dependencies):
> >
> >% dpkg -i libc6_2.2.5-1_i386.deb
> >% dpkg -i whois_4.5.19_i386.deb
> >
> >All very well. But now it starts to go wrong: apt-get informs me that locales has unmet dependecies, so I update to the newer version - all the time checking http://www.debian.org/distrib/packages for dependencies, but in reality just digging myself into a hole :(
> >
> >So, I continue:
> >
> >% dpkg -i locales_2.2.5-1_all.deb
> >
> >but this won't work because it requires a newer version of libc6-dev. So I decide: enough. Just reinstall the stable packages and to hell with whois - it's just getting too messy and I only wanted to update my whois.
> >
> >So I try:
> >% dpkg -i whois_4.4.14.deb
> >% dpkg -i locales_2.1.3-19.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.
> >% env
> >PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
> >% dpkg -l ldconfig
> >Desired=Unknown/Install/Remove/Purge/Hold
> >| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> >|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> >||/ Name Version Description
> >+++-==============-==============-============================================
> >un ldconfig <none> (no description available)
> >
> >I also tried:
> >
> >% dpkg -i libc6_2.1.3-19.deb
> >
> >but get the same problem.
> >
> >If I try doing an upgrade:
> >
> >% apt-get dist-upgrade
> >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-20) but 2.1.3-19 is installed
> >E: Unmet dependencies. Try using -f.
> >% apt-get -f install
> >Building Dependency Tree... Done
> >Correcting dependencies... Done
> >The following extra packages will be installed:
> > libc6 locales
> >2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> >2 packages not fully installed or removed.
> >Need to get 0B/4185kB of archives. After unpacking 0B will be used.
> >Do you want to continue? [Y/n]
> >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)
> >
> >So, finally, just to let you know where we're up to:
> >
> >% dpkg -l whois libc6 locales
> >Desired=Unknown/Install/Remove/Purge/Hold
> >| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> >|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> >||/ Name Version Description
> >+++-====================-====================-========================================================
> >ii whois 4.4.14 whois client
> >iF libc6 2.1.3-19 GNU C Library: Shared libraries and Timezone data
> >iU locales 2.1.3-19 GNU C Library: National Language (locale) data [binary]
> >
> >So does anyone have any ideas how I get out of this self-made mess?
> >
> >Help would be greatly appreciated!
> >
> >kar
> >
> >
>
>
kar
Reply to: