Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've logged into my Ubuntu server from work via putty under Windows. Right away I noticed something weird. I could not use the ls command. Got:

-bash: /bin/ls: no such file or directory

I didn't pay much attention, I thought it was a putty thing.

Tonight I've logged from home via ssh under Ubuntu and I get the same problem on my server!

Not only that but other commands like find give me the same message.

I've also noticed that all colours are gone in the prompt.

If I echo PATH, I get :


to replace lsI can use dirand it works, but that's only a temporary workaround.

Also I've tried:

ldd /bin/ls

gives me is not and dynamic executable

What could be the problem ?


Oh and running apt-get updategives me:

W: Failed to fetch Something wicked happened resolving « » (-5 - No address associated with hostname)

share|improve this question
Did you fixed it? Have you tried type ls ? – Hastur Jun 17 '14 at 22:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.