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
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
sudo dpkg-reconfigure locales should work.
# 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:
and restart the terminal.
For me, these steps work. I hope it helps you too.
Generating locales (this might take a while)... en_US.UTF-8...Killedon Debian 11 trying to run locale-gen!
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
Check the language environment variable:
An easier way is to set the
LC_* variable to the value