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

系统恢复正常

复制代码
# ps
  PID TTY          TIME CMD
19214 pts/12   00:00:00 ps
30545 pts/12   00:00:01 bash
相关推荐
liu****10 小时前
基于websocket的多用户网页五子棋(九)
服务器·网络·数据库·c++·websocket·网络协议·个人开发
liu****10 小时前
基于websocket的多用户网页五子棋(八)
服务器·前端·javascript·数据库·c++·websocket·个人开发
馨谙10 小时前
Linux中权限系统
linux·运维·服务器
云动雨颤12 小时前
Linux卡在emergency mode怎么办?xfs_repair 命令轻松解决
linux·运维·服务器
零基础的修炼13 小时前
Linux---进程信号
运维·服务器
Abstracod13 小时前
centos7 安装病毒扫描软件ClamAV
服务器
Maple_land14 小时前
Linux进程第五讲:PPID与bash的关联、fork系统调用的原理与实践操作(上)
linux·运维·服务器·centos·bash
running thunderbolt15 小时前
项目---网络通信组件JsonRpc
linux·服务器·c语言·开发语言·网络·c++·性能优化
影子240115 小时前
Windows Server2016 服务器安装JDK,一直卡在“应用程序正在为首次使用作准备,请稍候” ,导致jdk安装失败解决方案
运维·服务器·windows·jdk
_OP_CHEN16 小时前
Linux 系统编程:(一)从历史演进到 XShell 远程登录实操
linux·运维·服务器·centos·unix·xshell