Simply put, modify the /etc/default/locale
file, set the language bit UTF-8, if not the language, the execution of the command locale-gen en_US.UTF-8
to install, without immediate effect, restart.
View current system language
locale
Modify the system language
For example, modify the language to English
vi /etc/default/localeLANG="en_US.UTF-8"LANGUAGE="en_US:en"
Check the system language again after rebooting
Localelocale:cannotSet 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 F Ile 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 within the system
-a 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_COLLATE to default locale: No such file or directoryCPOSIXzh_CN.utf8zh_SG.utf8
I didn't pretend to be en_us. UTF-8
locale-gen en_US.UTF-8
Check Again
LANG=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=
Ubuntu modified system language can be used in English to support Chinese