terminal error-setlocale: LC_ALL

Home Forum General Talks Help and Support terminal error-setlocale: LC_ALL

Topic Resolution: Resolved

Tagged: 

This topic contains 16 replies, has 3 voices, and was last updated by eter eter 2 years, 3 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1578
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    bash: warning: setlocale: LC_ALL: cannot change locale (.UTF-8)

    1. check locale
    – open terminal, issue the command “locale”
    2. language setting
    – issue the command “gnome-language-selector”
    – set your language
    – check the file /home/$USER/.pam_environment
    3. reboot machines
    – open a terminal and check if the error show up.

    If a mistake is still

    1. Edit files /home/$USER/.bashrc | /home/$USER/.profile
    – remove sections “# Path LC_ALL=”
    – add entries:
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    Replace “en_US.UTF-8” according to the language settings that are set.
    should be :good:

    You want to help in the development?
    Comments and suggestions welcome!

    #1580

    flavitu
    Keymaster
    • Topics: 5
    • Replies: 28
    • Post: 33

    Maybe $ dpkg-reconfigure locales can help in this case.

    sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

    to update –

    /etc/default/locale

    Thanks for share your experience. :good:

    #1601

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    to set italian?

    #1604

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    my .bashrc:

    #1605

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    my .profile:

    #1606

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    but does not work?

    #1607
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    Remove sections /home/$USER/.bashrc | /home/$USER/.profile

    add entries:

    export LC_ALL=it_IT.UTF-8
    export LANG=it_IT.UTF-8
    export LANGUAGE=it_IT.UTF-8

    in /home/$USER/.bashrc | /home/$USER/.profile

    You want to help in the development?
    Comments and suggestions welcome!

    #1610
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    put “locale” i terminal-give the result

    You want to help in the development?
    Comments and suggestions welcome!

    #1616

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    $ locale
    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
    LANG=.UTF-8
    LANGUAGE=.UTF-8.UTF-8
    LC_CTYPE=”.UTF-8″
    LC_NUMERIC=”.UTF-8″
    LC_TIME=”.UTF-8″
    LC_COLLATE=”.UTF-8″
    LC_MONETARY=”.UTF-8″
    LC_MESSAGES=”.UTF-8″
    LC_PAPER=”.UTF-8″
    LC_NAME=”.UTF-8″
    LC_ADDRESS=”.UTF-8″
    LC_TELEPHONE=”.UTF-8″
    LC_MEASUREMENT=”.UTF-8″
    LC_IDENTIFICATION=”.UTF-8″
    LC_ALL=.UTF-8

    #1617
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    Put in terminal:
    export LC_ALL=it_IT.UTF-8
    export LANG=it_IT.UTF-8
    export LANGUAGE=it_IT.UTF-8
    and give the result “locale”

    You want to help in the development?
    Comments and suggestions welcome!

    #1618

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    locale
    LANG=it_IT.UTF-8
    LANGUAGE=it_IT.UTF-8
    LC_CTYPE=”it_IT.UTF-8″
    LC_NUMERIC=”it_IT.UTF-8″
    LC_TIME=”it_IT.UTF-8″
    LC_COLLATE=”it_IT.UTF-8″
    LC_MONETARY=”it_IT.UTF-8″
    LC_MESSAGES=”it_IT.UTF-8″
    LC_PAPER=”it_IT.UTF-8″
    LC_NAME=”it_IT.UTF-8″
    LC_ADDRESS=”it_IT.UTF-8″
    LC_TELEPHONE=”it_IT.UTF-8″
    LC_MEASUREMENT=”it_IT.UTF-8″
    LC_IDENTIFICATION=”it_IT.UTF-8″
    LC_ALL=it_IT.UTF-8

    #1620
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    ok :yes:
    put this command in the file
    ~/.bashrc
    ~/.profile
    reboot
    :good:

    You want to help in the development?
    Comments and suggestions welcome!

    #1621

    Anonymous
    • Topics: 2
    • Replies: 10
    • Post: 12

    where in the file ?

    #1623
    eter
    eter
    Keymaster
    • Topics: 32
    • Replies: 45
    • Post: 77

    home folder
    put key Ctrl+h
    will see hidden files
    find .bashrc and .profile

    bashrc – must look like

    .profile – must look like

    reboot

    You want to help in the development?
    Comments and suggestions welcome!

    #1630

    flavitu
    Keymaster
    • Topics: 5
    • Replies: 28
    • Post: 33

    :good:

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.