/***********************************************************
* Author:samson
* date:08/15/2015
* Test Platform:
* GCC 4.8.2
* GNU Bash, 4.3.11 (1)-release (X86_64-PC-LINUX-GNU)
* Debian 8
* *********************************************************/
Debian under how to set language items, in the daily system installation, there will be installed in the Chinese environment, if only in the terminal to operate, will encounter the Chinese error prompts and other information displayed as garbled, this time, most of them chose to reinstall the system, however, in fact, does not use to reinstall, Just switch to the language. The following cases switch to the English environment in the Chinese environment for example:
Execute the command first:
$ sudo export lang=en_us. UTF-8
Execute at the command line:
$ sudo dpkg-reconfigure locales
Opens a Selection language window in which you select the character set entry for the English environment, in this case select en_US. UTF-8 UTF-8, that is, press the empty cells check box, the Chinese environment of the package can be directly removed, that is, find the Zh_cn.utf8 item will check box to remove the selection, now all the way to determine the installation.
Use the following command to see if the installation was successful:
$ locale-a
C
C.utf-8
Posix
en_US. UTF-8
Then, restart the system.
REF:
Https://wiki.debian.org/ChangeLanguage
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Debian changes the system language environment (Chinese to English) instance