-bash: /bin/ls: cannot execute binary file

433 views
Skip to first unread message

Superconnected

unread,
Jul 25, 2007, 4:43:11 PM7/25/07
to FHZ1000 users on Linux
Hi,

after setting up the fht1000.pl with all ist required packages and
running the install scripts I have a very odd behavior. Somehow the
root password got screwed up which I managed to fix, but also some
commands (like ls, ps, etc.) are no longer working. I get the message:


NSL2:~# ps
-bash: /bin/ps: cannot execute binary file
NSL2:~#

NSL2:~# ls
-bash: /bin/ls: cannot execute binary file
NSL2:~#

Any Ideas?

Thanks and BR
Jens

Matthias Urlichs

unread,
Jul 26, 2007, 2:18:54 AM7/26/07
to FHZ1000-us...@googlegroups.com
Hi,

Superconnected:


> NSL2:~# ls
> -bash: /bin/ls: cannot execute binary file
> NSL2:~#
>

Yowch. You seem to have screwed up a shared library, probably
/lib/ld-linux.so.2 (which should be a symlink to ld-#.#.#.so, where
#.#.# is the version of your C library).

You can test this by explicitly saying

/lib/ld-2.3.6.so /bin/ls

(or whatever that number is in your box). Since /bin/ls seems not to be
working, you can get the shell to tell you using "echo /lib/ld*so".

But, frankly: at this point, re-flashing the box might be the safer option.

--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | sm...@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
Rechargeable batteries die at the most critical time of the most complex
problem.
-- John L. Shelton

Superconnected

unread,
Jul 26, 2007, 10:16:10 AM7/26/07
to FHZ1000 users on Linux
Thanks Matthias,

I tried

apt-get upgrade

yesterday night. It completly screwed up my NLSU2. I have no clue what
happened. So I start from scratch...

Cheers
Jens

Reply all
Reply to author
Forward
0 new messages