升级glibc导致ssh登录出现问题

注明: 本文章转自内部论坛并修改,侵泄删!!!

状态描述

[root@yanta ~]$ ssh node
grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/ps: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/basename: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
sed: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
uname: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/bin/grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/usr/bin/id: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
-bash: [: : integer expression expected
cut: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
grep: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
[root@node ~]$ w
w: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument

解决方法

删除libc.so.6 后恢复正常:

[root@yanta ~]$ rm libc.so.6 -f
[root@yanta ~]$ ssh  node
Last login: Tue May 29 11:36:10 2018 from yanta

Node: 别升级glibc !!! glibc是系统组件(文件名libc.so.6, 是C语言运行库),升级后会导致系统异常。

你可能感兴趣的:(linux)