本文主要是介绍Linux升级lib64中的libc.so.6导致所有命令失效,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于Linux升级lib64中的libc.so.6导致所有命令失效的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!