Modify locale in Ubuntu to change the language environment variable to English.

Source: Internet
Author: User
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

Related Article

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.