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 installed emacs-snapshot through

Everything works fine except when I run dired I get this error:

Debugger entered--Lisp error: (file-error "Searching for program" "no such file or directory" "ls")
call-process("ls" nil nil nil "--dired")
share|improve this question
Are you starting emacs through the Dash launcher? If so, it is using the PATH defined in ~/.profile, not the one set up in ~/.bashrc. See for more info. – waltinator Oct 16 '11 at 0:48
up vote 3 down vote accepted

I was able to fix this with:

(setenv "PATH" (concat (getenv "PATH") ":/bin"))
(setq exec-path (append exec-path '("/bin")))
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.