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

前端 未结 8 2186
孤城傲影
孤城傲影 2020-12-24 13:12

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:

/bin/ln -s /li         


        
8条回答
  •  情深已故
    2020-12-24 13:18

    Note, for 64 bit:

    LD_PRELOAD=libc-2.13.so ln -s libc-2.13.so libc.so.6

    This worked great for me

    If you are not in that directory of course it will be something like:
    LD_PRELOAD=/lib/x86_64-linux-gnu/libc-2.13.so ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib/x86_64-linux-gnu/libc.so.6

提交回复
热议问题