9

How can I set English as a default language in Debian ? I've installed Debian in a different language.

$ sudo update-locale LANG=en_US.UTF-8 LANGUAGE=en_US  
update-locale: Error: invalid locale settings:  LANGUAGE=en_US LANG=en_US.UTF-8
9

Using sudo dpkg-reconfigure locales should work.

| improve this answer | |
  • By that, English has become a default language. – user121832 Aug 21 '15 at 2:48
3

Edit file:

# vim /etc/default/locale

and write the following uncommented line:

#  File generated by update-locale
LANG=en_US.UTF-8

and then comment the current uncommented lines and uncomment the line with en_US.UTF-8 (in the same file):

# en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8
# en_ZA ISO-8859-1

Save file and run:

# locale-gen

and restart the terminal.

For me, these steps work. I hope it helps you too.

| improve this answer | |
  • 1
    I think the first and second file path are the same – Mailo Světel Sep 25 at 9:30
  • Yes, you're right @MailoSvětel! I fixed it just now. Thank you! – simhumileco Sep 25 at 15:26
1

Can you start with the output of env | grep LANG? Make sure those all point to the proper lang/country, then do the dpkg command as mentioned by @vlp

| improve this answer | |
0

Check the language environment variable: LC_LANG.

An easier way is to set the LC_ALL or LC_* variable to the value en_GB.UTF-8.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy