Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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

Mine has the contents:

LANG="en_GB.UTF-8"
LANGUAGE="en_GB:en"

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
add comment

Your Answer

 
discard

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.