ubuntu 更改locale

查看当前系统语言环境

更改语言环境

现在需将en_US.UTF-8改为zh_US.UTF-8,en改为cn。编辑配置文件如下:

保存后执行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 说明没有安装

查看系统安装的locale

安装locale

查看: