Re: big problem with libc6 install
On Sun, Jan 26, 2003 at 02:09:52PM +1100, Rob Weir wrote:
> On Mon, Jan 20, 2003 at 06:35:43PM -0000, Alberto Rodriguez wrote:
> > I have a host with debian woody. It was a few time that I didn?t upgrade the packets. with apt-get I tried upgrade packets but this failed.
> Ooooh, ouchy. That's quite a mess :) You could play around the
> LD_LIBRARY_PATH and such with dpkg, but I think there's an easier way.
> A .deb is just an 'ar' archive with three files in it: control.tar.gz,
> data.tar.gz and debian-binary. The data.tar.gz file is just a tarball
> of the files that deb installs, the other two contain information for
> dpkg to maintain it's package database. I *think* that the easy way out
> here is to extract the files from the libc deb (using 'ar x
> ./cache/apt/archives/libc6_2.2.5-11.1_i386.deb' in an empty directory
> somewhere), then untar data.tar.gz in /. This will put the correct
> version of libc back on your system, so hopefully dpkg will work again.
You might need to run /sbin/ldconfig as well.
> If even tar doesn't work correctly, you might need to install the
> statically linked busybox tool set, which, I think, is in woody.
If you do this sort of thing on a slink system it busts it big time -
nothing works, it's a rescue disk job. You're lucky :-)