码迷,mamicode.com
首页 > 系统相关 > 详细

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

时间:2015-11-10 14:17:45      阅读:383      评论:0      收藏:0      [点我收藏+]

标签:bad elf interpreter

解决此类故障

-bash: /usr/sbin/ntpdate: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

[root@xnop029-CT-SDDX-102-34 ~]#  /usr/sbin/ntpdate time.dnion.com

-bash: /usr/sbin/ntpdate: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

yum安装的时候遇到了问题 yum出现问题

[root@xnop029-CT-SDDX-102-34 ~]# yum install glibc.i686

Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, security, tmprepo, verify, versionlock

Loading support for CentOS kernel ABI

Loading mirror speeds from cached hostfile

 * base: centos.ustc.edu.cn

 * extras: centos.ustc.edu.cn

 * updates: centos.ustc.edu.cn

http://centos.ustc.edu.cn/centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘centos.ustc.edu.cn‘"

Trying other mirror.

http://ftp.sjtu.edu.cn/centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"

Trying other mirror.

^C^C^C

 Current download cancelled, interrupt (ctrl-c) again within two seconds

to exit.



修改yum源

[root@xnop029-CT-SDDX-102-34 ~]#  cd /etc/yum.repos.d/

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

--2015-11-10 11:32:28--  http://mirrors.163.com/.help/CentOS6-Base-163.repo

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo   

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# yum clean all

安装glibc.i686 解决原始问题

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# yum install glibc.i686

[root@xnop029-CT-SDDX-102-34 yum.repos.d]# /usr/sbin/ntpdate time.dnion.com

10 Nov 11:42:15 ntpdate[16542]: step time server 122.11.48.161 offset 126.030375 sec


/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

标签:bad elf interpreter

原文地址:http://8401800.blog.51cto.com/8391800/1711363

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!