Change Ubuntu system language environment to English en_US.UTF-8

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.