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原创, 转载注明出处喵~

Leave a Reply

Your email address will not be published. Required fields are marked *