debian locales错误

某台debian机器的locale执行出现如下错误

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

出现这个一般是locale文件缺失,需要重新生成

dpkg-reconfigure locales

选中需要的locale就可以了

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.