libc.so.5 repair?
Hello. Is there any possibility on repairing /lib/libc.so.5 file? Somehow during apt-get upgrade on Debian 8.3 VPS it got truncated and now many packages won't work. It's production server so I'm a bit affraid now. Thanks.
Code:
~# gdb wget Code:
~# ls -l /lib/ Code:
~# uname -a |
For the simple one, you will have to boot the system with a recovery system... And see if that recovery system has the file you want - then just copy it back.
The longer one is to force the reinstall of the package containing libc (try dpkg --search /lib/libc.so.5, then reinstall that package (apt-get --reinstall <packagename>). Note: I only have a Raspberry PI, and haven't done a lot with apt-get or dpkg, but this is what is indicated by the reference manual documentation. |
Quote:
I wanted to backup that truncated file file using cp but it gave me error cp: skipping file `libc.so.5', as it was replaced while being copied. Man I'm desperate. |
libc.so.5 is the old Linux libc, not the Gnu glibc libc.so.6 that has been used for years.
Where did you get it from? It's not present in any of my Debian boxen or in any Debian repo's that I'm aware of. |
I don't see any way to replace it without getting it from somewhere else ... and that will require a reboot using a system that has a valid copy.
libc.so.5 is very old... and support discontinued around 1997. The current libc version is 2.20 and on my system /lib/libc.so.6 is a symbolic link to it. libc is the lowest level library and contains all the system calls, and is used by every program in the system. |
Quote:
Then I wanted to remove libc.so.5 and replace it with libc.so.6 but copying failed with the message I wrote above. I really don't know what to do now. |
You might have to add a symbolic link from libc.so.5 to point to libc.so.6
The problem is compatibility. libc.so.5 was not fully POSIX, libc.so.6 is more compatibly, and usually built for newer systems than what libc.so.5 systems would use. It may not work, or work partially. |
You should really talk to your VPS provider about it.
|
All times are GMT -5. The time now is 12:34 AM. |