sudo vi /etc/default/locale
显示
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
将其内容更改成
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
然后重启reboot机器。
将中文改成英文,但是在使用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
是因为 en-US.UTF-8
没有安装。
dpkg-reconfigure locales
修改,在选项中选择en-US.UTF-8 按空格选中,然后简单的按 ok 键就好了。