ubuntu 下设置 locale 报错

发表时间

报错现象

$ /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
$ /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

解决方法

修改文件

/etc/default/locale

添加:

LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

重启


除非特别说明,本站文章均系原创,并采用 署名协议 CC-BY 授权。
欢迎转载,惟请保留原文链接:https://lfhacks.com/tech/ubuntu-locale