Change Ubuntu system language environment to English en_US.UTF-8 View Current System Language Environment locale edit configuration file, change zh_US.UTF-8 to en_US.UTF-8, en change to ensudonano/etc/default/localeLANG = "en_US.UTF-8" LANGUAGE = "en_US: en" to continue viewing the changed system LANGUAGE variables. If the following error occurs, the l of en_US Is Not Installed
Change Ubuntu system language environment to English en_US.UTF-8
View the current system language environment
locale
Edit the configuration file, change zh_US.UTF-8 to en_US.UTF-8, zh to en
sudo nano /etc/default/locale
LANG="en_US.UTF-8"LANGUAGE="en_US:en"
Continue to view the changed system language variables. If the following error occurs, the local of en_US is not installed.
www.linuxidc.com @ubuntu:~$ localelocale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryLANG=en_US.UTF-8LANGUAGE=en_US:enLC_CTYPE="en_US.UTF-8"LC_NUMERIC="en_US.UTF-8"LC_TIME="en_US.UTF-8"LC_COLLATE="en_US.UTF-8"LC_MONETARY="en_US.UTF-8"LC_MESSAGES="en_US.UTF-8"LC_PAPER="en_US.UTF-8"LC_NAME="en_US.UTF-8"LC_ADDRESS="en_US.UTF-8"LC_TELEPHONE="en_US.UTF-8"LC_MEASUREMENT="en_US.UTF-8"LC_IDENTIFICATION="en_US.UTF-8"LC_ALL=
View the locale INSTALLED IN THE SYSTEM
www.linuxidc.com @ubuntu:~$ locale -alocale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_COLLATE to default locale: No such file or directoryCPOSIXzh_CN.utf8zh_SG.utf8
Look, no en_US.UTF-8 installed en_US.UTF-8
www.linuxidc.com @ubuntu:~$ cd /usr/share/localeswww.linuxidc.com @ubuntu:/usr/share/locales$ lsinstall-language-pack remove-language-packwww.linuxidc.com @ubuntu:/usr/share/locales$ sudo ./install-language-pack en_USGenerating locales... en_US.UTF-8... doneGeneration complete.dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
Check that everything is normal.
www.linuxidc.com @ubuntu:/usr/share/locales$ localeLANG=en_US.UTF-8LANGUAGE=en_US:enLC_CTYPE="en_US.UTF-8"LC_NUMERIC="en_US.UTF-8"LC_TIME="en_US.UTF-8"LC_COLLATE="en_US.UTF-8"LC_MONETARY="en_US.UTF-8"LC_MESSAGES="en_US.UTF-8"LC_PAPER="en_US.UTF-8"LC_NAME="en_US.UTF-8"LC_ADDRESS="en_US.UTF-8"LC_TELEPHONE="en_US.UTF-8"LC_MEASUREMENT="en_US.UTF-8"LC_IDENTIFICATION="en_US.UTF-8"LC_ALL=
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2