linux出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法

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


是本地的语言包没有安装 

修改/etc/locale.gen

echo en_US ISO-8859-1 >> /etc/locale.gen
echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
echo zh_CN GB18030 >> /etc/locale.gen
echo zh_CN.GB2312 GB2312 >> /etc/locale.gen
echo zh_CN.UTF-8 UTF-8 >> /etc/locale.gen

然后执行 
locale-gen

你可能感兴趣的:(linux相关)