L'aptitude install locales:

        xav...@pc002:~$ sudo aptitude install locales
        [sudo] password for xavier: 
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        Reading extended state information       
        Initializing package states... Done
        Reading task descriptions... Done  
        No packages will be installed, upgraded, or removed.
        0 packages upgraded, 0 newly installed, 0 to remove and 5 not
        upgraded.
        Need to get 0B of archives. After unpacking 0B will be used.
        Writing extended state information... Done
        perl: warning: Setting locale failed.
        perl: warning: Please check that your locale settings:
                LANGUAGE = (unset),
                LC_ALL = (unset),
                LANG = "ca_ES"
            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
        Reading package lists... Done             
        Building dependency tree       
        Reading state information... Done
        Reading extended state information      
        Initializing package states... Done
        Reading task descriptions... Done  
        

amb dpkg-reconfigure locales deixo els locales com "ca_ES.UTF-8"

        xav...@pc002:~$ sudo dpkg-reconfigure locales
        perl: warning: Setting locale failed.
        perl: warning: Please check that your locale settings:
                LANGUAGE = (unset),
                LC_ALL = (unset),
                LANG = "ca_ES"
            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
        /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such
        file or directory
        /usr/bin/locale: Cannot set LC_MESSAGES 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)...
          ca_ES.UTF-8... done
        Generation complete.
        xav...@pc002:~$ 
        

si torno a generar locales amb locale-gen:

        xav...@pc002:~$ sudo locale-gen
        Generating locales (this might take a while)...
          ca_ES.UTF-8... done
        Generation complete.
        xav...@pc002:~$ 

Si aleshores miro la codificació de caracters a la finestra de terminal,
em diu Current Locale (ANSIX3.4-1968) i a sota em presenta Unicode
(UFT-8), amb cap de les dos el teclat em funciona bé, encara que amb
Unicode recupero els accents, peró la fletxa amunt segueix activant la
captura de pantalla.
Si ara intento carregar cap programa com per exemple el mmg, em diu:

        xav...@pc002:~$ mmg
        
        (process:6095): Gdk-WARNING **: locale not supported by C
        library
        
        (process:6095): Gtk-WARNING **: Locale not supported by C
        library.
                Using the fallback 'C' locale.
        Error: The locale could not be set properly. Check the LANG,
        LC_ALL and LC_MESSAGES environment variables.
        xav...@pc002:~$ 

o sigui que hi ha quelcom obstinat a fer-me la punyeta i no se que es.
I si reinicio l'ordinador, es tornar a començar de nou.
Salut i gràcies a qui es miri aquesta pallissa..

Xavier De Yzaguirre
xdeyzaguirre(a)ono.com

Respondre per correu electrònic a