Trade Off

supercalifragilisticexpialidocious

解决Cannot Set LC_CTYPE to Default Locale: No Such File or Directory问题

刚拿到vps,打算更新一些软件,发现有些warning挺讨厌的,于是就想根除他们!!他们一般是这样的:

1
2
3
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

我看到我的LANG被设定为zh_CN.utf8,虽然我们是国人,但这个语言习惯不能代表我们的爱国情怀吧,我就改为en_US.utf8了:

1
2
sudo touch /etc/default/locale
vi /etc/default/locale

加入:

1
2
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"

再执行一下locale就发现问题不见了。

希望vpsee的admin能在iso中修正这个事儿~

Comments