Not able to run any command /lib64/ld-Linux-x86-64.so.2: bad ELF interpreter | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Not able to run any command /lib64/ld-Linux-x86-64.so.2: bad ELF interpreter

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-25-2013
stunn3r stunn3r is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 18 October 2014, 3:21 PM EDT
Location: India
Posts: 29
Thanks: 7
Thanked 0 Times in 0 Posts
Hammer & Screwdriver Not able to run any command /lib64/ld-Linux-x86-64.so.2: bad ELF interpreter

Hi,

I accidentally did this:

[
Code:
wadhwaso@nxsdgd01 deps]$sudo rpm -e --nodeps glibc-2.5-107.x86_64
error: %postun(glibc-2.5-107.x86_64) scriptlet failed, exit status 255

and since then I am not able to run any command on this server except 'cd'.

I always get the following error:

Code:
[wadhwaso@nxsdgd01 ~]$ ls
-bash: /bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

I am not able to access this server via ssh and I cant even scp a file if I want to. i cant use 'touch', I cant 'vi'. I always get this error

I checked on another server for the file and following is the info.:

[
Code:
wadhwaso@nxsdgd05 ~]$ ls /lib64/ld-linux-x86-64.so.2
/lib64/ld-linux-x86-64.so.2
[wadhwaso@nxsdgd05 ~]$ ll /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx 1 root root 9 Apr  7  2012 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so

Fortunately I also have a winscp session opened for nxsdgd01 but as I am not logged in as root I cannot transfer a file in /lib64. How this could be resolved ?

Last edited by jim mcnamara; 03-25-2013 at 06:43 AM..
Sponsored Links
    #2  
Old 03-25-2013
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 9 October 2014, 3:02 PM EDT
Location: East Coast
Posts: 611
Thanks: 1
Thanked 176 Times in 162 Posts
What OS?
Sponsored Links
    #3  
Old 03-25-2013
stunn3r stunn3r is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 18 October 2014, 3:21 PM EDT
Location: India
Posts: 29
Thanks: 7
Thanked 0 Times in 0 Posts
RHEL 5.7 Tikanga
    #4  
Old 03-25-2013
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 9 October 2014, 3:02 PM EDT
Location: East Coast
Posts: 611
Thanks: 1
Thanked 176 Times in 162 Posts
Is this a system that you can boot with an ISO?
Sponsored Links
    #5  
Old 03-25-2013
stunn3r stunn3r is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 18 October 2014, 3:21 PM EDT
Location: India
Posts: 29
Thanks: 7
Thanked 0 Times in 0 Posts
This is a virtual machine .. so yep
Sponsored Links
    #6  
Old 03-25-2013
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 9 October 2014, 3:02 PM EDT
Location: East Coast
Posts: 611
Thanks: 1
Thanked 176 Times in 162 Posts
You should be able to boot up with the RHEL5 boot ISO and go into rescue mode. From there you should be able to reinstall the removed glibc package. Since you'd be running from the ISO, all the commands should be available.
Sponsored Links
    #7  
Old 03-28-2013
stunn3r stunn3r is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 18 October 2014, 3:21 PM EDT
Location: India
Posts: 29
Thanks: 7
Thanked 0 Times in 0 Posts
Hey Thank You .. I went to recovery mode and all is good now.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bad Interpreter RagingNinja Shell Programming and Scripting 2 08-03-2011 04:15 PM
bad interpreter when running script bzb23 Shell Programming and Scripting 12 03-10-2011 12:43 PM
bad interpreter: Permission denied ladyAnne Shell Programming and Scripting 3 08-03-2010 09:00 AM
bad interpreter: Permission denied earnstaf UNIX for Dummies Questions & Answers 7 07-19-2007 06:17 PM
What does bad elf flags mean? penguin-friend UNIX for Advanced & Expert Users 1 01-16-2002 09:27 AM



All times are GMT -4. The time now is 04:29 AM.