最近在尝试CentOS7系统,国内对好多问题的解决方法甚少,这里记录一下可能的问题
┌─[thekingofnight@parrot]─[~]
└──╼ $ locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8
先尝试 yum reinstall glibc-common,如果locale -a 仍然没有中文 或 其他语言
修改
/etc/yum.conf
将
override_install_langs=en_US
注释掉,再尝试yum reinstall glibc-common就好了,剩下的内容就比较好搜 了