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.
Qii @ Ubuntu :~ $ Locale
Locale: cannot set lc_ctype to default locale: no such file or directory
Locale: cannot set lc_messages to default locale: no such file or directory
Locale: cannot set lc_all to default locale: no such file or directory
Lang = en_US.UTF-8
Language = en_us: En
Lc_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
Qii @ Ubuntu :~ $ Locale-
Locale: cannot set lc_ctype to default locale: no such file or directory
Locale: cannot set lc_messages to default locale: no such file or directory
Locale: cannot set lc_collate to default locale: no such file or directory
C
POSIX
Zh_cn.utf8
Zh_sg.utf8
Look, no en_US.UTF-8 installed en_US.UTF-8
Qii @ Ubuntu :~ $ CD/usr/share/locales
Qii @ Ubuntu:/usr/share/locales $ ls
Install-language-pack remove-language-pack
Qii @ Ubuntu:/usr/share/locales $ sudo./install-language-pack en_us
Generating locales...
En_US.UTF-8... Done
Generation complete.
Dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a -- by-package option)
Check that everything is normal.
Qii @ Ubuntu:/usr/share/locales $ locale
Lang = en_US.UTF-8
Language = en_us: En
Lc_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 =
Original from [Wind letter network], reprinted Please retain the original link: http://www.ithov.com/linux/100921.shtml