Debian System Modification Language set to EnglishJune 19, 2012 / East Dongdong /3 Reviews
Today installed a Debian virtual machine, when the installation was originally wanted to choose English, but the time zone can only use the United States time zone, so the Chinese language, no prompt to choose the time zone.
Found in the shell Chinese or garbled, so resolutely to change the language into English. Open file Locale
sudo vi/etc/default/locale
Show
Lang= "ZH_CN. UTF-8 "language=" Zh_cn:zh "
Change its contents to
Lang= "en_US. UTF-8 "language=" En_us:en "
Then restart the reboot machine.
In the process of modification, VI has forgotten almost, resulting in a very tangled change, reluctantly to modify the completion. Later, I want to install a vim for Debian, which indicates that the location source could not be found. Later, after running Apt-get update, you can install it.
——— –update on June 22--–
Although the previous ability to change the Chinese language to English, but in the use of locale
commands always appear
Locale: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 directory
Ubuntu wiki Locale Modification is said to be because en-US.UTF-8
there is no installation. Learned to pass
Dpkg-reconfigure locales
Modify, select En-us.utf-8 in the options to select by space. Then simply press the OK button. This is the correct system to change the Chinese environment system into an English-speaking environment.
Reference:debian Locale Description
Debian System Modification Language set to English