locale: Cannot set LC_ALL to default locale: No such file or directory

When I did apt-get upgrade operation on my server, there was some warning messages that said: locale: Cannot set LC_ALL to default locale: No such file or directory. 

To solve this problem, open /var/lib/locales/supported.d/local, then add

zh_CN.UTF-8 UTF-8

Save file and execute

sudo locale-gen
sudo dpkg-reconfigure locales

声明: 本文为0xBBC原创, 转载注明出处喵~

发表评论

电子邮件地址不会被公开。 必填项已用*标注