Ir a contenido

Error: invalid locale settings: LANGUAGE


Es muy fácil de seguir la salida de la línea de comandos.
Tras realizar la actualización rutinaria de Debian el paquete que gestiona los locales ha jodido algo. No se en que momento o por qué exactamente.

root@einstein:/home/user$ dpkg-reconfigure locales
Generating locales (this might take a while)...
  es_ES.UTF-8@euro... done
  es_ES.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MESSAGES = "es_ES@euro",
        LC_CTYPE = "es_ES@euro",
        LANG = "es_ES@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*** update-locale: Error: invalid locale settings:  LANGUAGE="es_ES:es:en_GB:en"

El caso es después de mirar un poco el man y los buscadores, que no poseían ningún registro anterior, y trastear…

root@einstein:/etc/default$ dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MESSAGES = "es_ES@euro",
        LC_CTYPE = "es_ES@euro",
        LANG = "es_ES@euro"
    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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
GTK-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
GTK-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Generating locales (this might take a while)...
  es_ES.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MESSAGES = "es_ES@euro",
        LC_CTYPE = "es_ES@euro",
        LANG = "es_ES@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*** update-locale: Error: invalid locale settings:  LANG=es_ES.UTF-8

…la aparente solución ha sido eliminar el archivo /etc/default/locale. Bueno, mejor renombrar no fuera que la cagase.

root@einstein:/etc/default$ mv locale locale.old

Con lo que todo ha llegado a buen cauce.

root@einstein:/etc/default$ dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MESSAGES = "es_ES@euro",
        LC_CTYPE = "es_ES@euro",
        LANG = "es_ES@euro"
    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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
GTK-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 54.
GTK-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale. at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Gdk-WARNING **: locale not supported by C library at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 60.
Generating locales (this might take a while)...
  es_ES.UTF-8... done
Generation complete.
root@einstein:/etc/default$

Aun no tengo un sistema 100% UTF-8, pero estoy en ello. BASH y alguna otra cosa creo que sigue usando ISO.

Etiquetas: , , ,

Información y Enlaces


Otras Entradas
Siguiente: Actualizar a X11R7.0 en Debian. ¿Problemas con los drivers de Nvidia?
Anterior: ¿Qué es la informática?

Entérate al instante

Lo más leído

Del archivo...


Comentarios

Y como lo solucionaste?.. yo tengo ese problema ahora

Eh… esto… está todo escrito.


Agregue un Comentario

Consejos

Escribe correctamente, esto es la Web, no un SMS. (No te vamos a cobrar por mas de 150 caracteres) ;-).
No insultes a los demás, respeta a las personas que hay al otro lado de la pantalla y que van a leer tu opinión.


Advertencia

Los comentarios de los usuarios no se corresponden necesariamente con la opinión de El Demonio Negro.
No está permitido verter comentarios contrarios a las leyes españolas o injuriantes. Por ello, nos reservamos el derecho a eliminar los comentarios que consideremos incumplen dichos preceptos.