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

When I do some super user operations, like upgrading the system, I get these warnings:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_PAPER = "de_DE.UTF-8",
    LC_ADDRESS = "de_DE.UTF-8",
    LC_MONETARY = "de_DE.UTF-8",
    LC_NUMERIC = "de_DE.UTF-8",
    LC_TELEPHONE = "de_DE.UTF-8",
    LC_TIME = "de_DE.UTF-8",
    LC_NAME = "de_DE.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Do you know how can I get rid of it? I want the system in en_US

share|improve this question
up vote 1 down vote accepted

Use sudo vim /etc/default/locale to add the missing lines:


Then reboot your system and everything should be fine.

share|improve this answer
Sorry, but that answer is bad advice, even if it happens to make the reported error go away. Neither LANGUAGE nor LC_ALL needs to be set, so you drew the wrong conclusion from the wording of the error message. Furthermore, if you want to set the LANGUAGE variable, you should give it a colon separated list of language codes; a complete locale name including the .UTF-8 part is plain wrong. Another thing is that in case of a desktop, you should never set LC_ALL persistently, since it screws up the related GUIs. (Possibly the OP has a server.) – Gunnar Hjalmarsson Jun 26 '14 at 14:51

If you want all the number formats, date/time formats etc. in US style, you can edit the /etc/default/locale file and make it contain only the line


Otherwise you can generate the missing German locale:

sudo locale-gen de_DE.UTF-8
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.