ls: relocation error: libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
升级Glibc后出现所有shell命令都不可用
# systemctl status
systemctl: relocation error: /lib64/libpthread.so.0: symbol __libc_vfork version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
# systemctl status kubelet
systemctl: relocation error: /lib64/libpthread.so.0: symbol __libc_vfork version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
# ps
ps: relocation error: /lib64/libpthread.so.0: symbol __libc_vfork version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
# ps -elf
ps: relocation error: /lib64/libpthread.so.0: symbol __libc_vfork version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
# ls
ls: relocation error: /lib64/libpthread.so.0: symbol __libc_vfork version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
解决方法
原因是因为升级过程删除了soft link
此时,sln命令还是可以用的
# sln /usr/lib64/libc-2.28.so /lib64/libc.so.6
# sln /usr/lib64/ld-2.28.so /usr/lib64/ld-linux-x86-64.so.2
系统恢复正常
# psPID TTY TIME CMD
19214 pts/12 00:00:00 ps
30545 pts/12 00:00:01 bash