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: debian, gnu, Informática, linux
Últimos comentarios