Server Fault is a question and answer site for system and network administrators. 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

My auth.log on my ubuntu server is full with

Unable to open env file: /etc/default/locale: No such file or directory

Any ideas on how to solve?

share|improve this question

One answer could be: Create the /etc/default/locale file...

Mine has the contents:


This may be caused by this bug. If it is, then simply running 'update-locale' may fix it.

share|improve this answer
+1 for running update-locale – Joe Jun 16 '09 at 18:09
echo 'LANG="en_US.UTF-8"' > /etc/default/locale

Possibly, replace "en_US.UTF-8" with a generated locale of your choice or just C which at least should be present.

You could check out /var/lib/locales/supported.d/local for an indication of which locales might be generated.

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.