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
相关推荐
爱奥尼欧41 分钟前
【Linux 系统】基础IO——Linux中对文件的理解
linux·服务器·microsoft
戒不掉的伤怀1 小时前
【Navicat 连接MySQL时出现错误1251:客户端不支持服务器请求的身份验证协议;请考虑升级MySQL客户端】
服务器·数据库·mysql
超喜欢下雨天1 小时前
服务器安装 ros2时遇到底层库依赖冲突的问题
linux·运维·服务器·ros2
搬码临时工1 小时前
小企业如何搭建本地私有云服务器,并设置内部网络地址提供互联网访问
运维·服务器
old-six-programmer2 小时前
NAT 类型及 P2P 穿透
服务器·网络协议·webrtc·p2p·nat
tan77º2 小时前
【Linux网络编程】网络基础
linux·服务器·网络
风口上的吱吱鼠2 小时前
Armbian 25.5.1 Noble Gnome 开启远程桌面功能
服务器·ubuntu·armbian
再见晴天*_*3 小时前
logback 日志不打印
java·服务器·logback
myskybeyond4 小时前
时序数据库TDEngine安装和使用
服务器·时序数据库·tdengine
myloveasuka5 小时前
[Linux]内核如何对信号进行捕捉
linux·运维·服务器