2013年(11)
分类: LINUX
2013-12-31 15:43:54
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_ALL to default locale: No such file or directory 这是需要运行locale,列出你想要的locales$ locale LANG=C LANGUAGE= LC_CTYPE=en_US.UTF-8 LC_NUMERIC="C" LC_TIME="C" LC_COLLATE=en_US.UTF-8 LC_MONETARY="C" LC_MESSAGES=en_US.UTF-8 LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=然后重新生成和配置一下有问题的locale:
$ sudo locale-gen en_US.UFT-8
$ sudo dpkg-reconfigure locales
参考