libc.so.6 심볼릭 링크 삭제시 복구 방법

원인 및 현상

무슨 정신으로 unlink libc.so.6 를 진행하여 shared library 심볼릭링크를 끊어 버렸다

 

shared library를 찾지 못한다는 내용.

libc.so.6 cannot open shared object file no such file or directory

 

터미널까지 나와버려서 다시 접근도 불가능함...

ssh_exchange_identification connection closed by remote host

 

복구 방법

- 응급복구 모드를 통해 싱글부팅 진행

- 심볼릭 링크 생성

ln -s /lib64/libc-2.12.so /lib64/libc.so.6

 

- 혹시나 오류가 발생하여 생성이 안될 경우 ldconfig 로 재설정 진행

ldconfig -l -v /lib64/libc-2.12.so

 

 

댓글

Designed by JB FACTORY

loading