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
相关推荐
bloglin999993 小时前
scp、rsync远程文件同步
linux·运维·服务器
迦南的迦 亚索的索3 小时前
LINUX环境
linux·运维·服务器
yuanjj883 小时前
linux下调试域格CLM920 NC5等9x07平台模块 QMI拨号
linux·运维·服务器
IMPYLH4 小时前
Linux 的 printenv 命令
linux·运维·服务器·bash
SilentSamsara4 小时前
SSH 远程管理:密钥登录 + 隧道转发,一次性配置好
linux·运维·服务器·ubuntu·centos·ssh
2501_945837434 小时前
OpenClaw:开启 “行动 AI“ 新纪元,从聊天机器人到自主智能体的范式革命
服务器
阿巴~阿巴~5 小时前
Git版本控制完全指南:从入门到实战(简单版)
linux·服务器·git
Cx330❀5 小时前
Linux命名管道(FIFO)通信:从原理到实操,一文搞懂跨进程通信
大数据·linux·运维·服务器·elasticsearch·搜索引擎
AI、少年郎5 小时前
MiniMind第 2 篇:破除大模型 “神秘感“, 环境搭建|Win/Linux 本地快速部署
linux·运维·服务器·ai·大模型训练·大模型微调·大模型原理
彭泽布衣6 小时前
Linux异常文件名文件如何删除
linux·运维·服务器