Skip to content
Advertisement

How to recover after deleting the symbolic link libc.so.6?

In our server the symbolic link to libc.so.6 has been deleted. Now none of the binaries in the system work. To fix this, I tried:

JavaScript

which, as expected, gives me:

JavaScript

I also tried:

JavaScript

with the same result. Further unsuccessful attempts include cp, mv, cat.

I’m connected via ssh and I believe I will not be able to open another session after closing this one. Is there a way to fix this system (using bash built-ins perhaps)?

[edit] I did:

JavaScript

to copy the file and tried with:

JavaScript

and got:

JavaScript

Advertisement

Answer

You could simply run ldconfig. Most distributions ship this as a static binary.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement