Monthly Archives: September 2014

bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Macintosh-3:~ user$ ssh root@vps.server.com
root@vps.server.com’s password:
Last login: Sun Sep  7 17:07:46 2014 from x.x.x.x
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[root@vps ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE=UTF-8
LC_NUMERIC=”en_US.utf8″
LC_TIME=”en_US.utf8″
LC_COLLATE=”en_US.utf8″
LC_MONETARY=”en_US.utf8″
LC_MESSAGES=”en_US.utf8″
LC_PAPER=”en_US.utf8″
LC_NAME=”en_US.utf8″
LC_ADDRESS=”en_US.utf8″
LC_TELEPHONE=”en_US.utf8″
LC_MEASUREMENT=”en_US.utf8″
LC_IDENTIFICATION=”en_US.utf8″
LC_ALL=
[root@vps ~]# vi /etc/sysconfig/i18n 

LANG=”en_US.utf8″
LC_CTYPE=”en_US.utf8″
LC_ALL=”en_US.utf8″

[root@vps ~]# source /etc/sysconfig/i18n
problem solved 🙂