[+] Inicio | [+] Contacto | [+] Blog



Locale Failed | warning: setlocale

$ date | cat c4t3g0ry;
- - Publicado el 22/08/2014 | Esto es sobre: Unix/Linux Sys.Admin

En estos momentos estoy configurando un servidor debian y un cent0s, ambos con el mismo error de los locale, aunque ya habia dado un reconfigure, me salian:

#Servidor en debian al momento de instalar:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.

#Servidor en cent0s al momento de entrar
> [ rafael ] ~ ]$ ssh root@cent0s
The authenticity of host 'cent0s ()' can't be established.
RSA key fingerprint is 19::51:58:8d:0adsasdasdad:42:3b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'lab' (RSA) to the list of known hosts.
root@cent0s's password:
Last login: Wed Aug 20 18:17:31 2014 from IP
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

En el debian antes que nada tuve que reconfigurar los locales, así elegí

root@lab:~ dpkg-reconfigure locales
root@lab:~ locale -a
C
C.UTF-8
en_US
en_US.iso88591
en_US.utf8
POSIX
root@lab:~

De esta forma ya tenia los locales que seleccioné en el dpkg-reconfigure y los añadi en /etc/environment.

En cuanto a centOS

root@centOS:~ locale -a
.
..
...
C
.
en_US
en_US.iso88591
en_US.utf8

Y añadí export LC_ALL="C" en mi /etc/profile, y con esto quite esos mensajes molestos.