7

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
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.

1

Edit file:

# vim /etc/default/locale

and write the following uncommented line:

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

Then edit also:

# vim /etc/default/locale

and comment the current uncomented lines and uncomment line with en_US.UTF-8:

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

Then run:

# locale-gen

and restart the terminal.

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

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

8

Using sudo dpkg-reconfigure locales should work.

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

Your Answer

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