Missing locale

Discussion in 'Troubleshooting' started by francescomm, Dec 14, 2013.

  1. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    If you have an error reporting that the selected locale is missing, like I did, you can fix it with the following commands.

    I had this kind of error recurring on some actions (like at VNC server start), it didn't block anything, but was annoying.


    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

    Type:

    Code:
    locale
    
    and find your locale:

    Code:
    LANGUAGE=
    LC_CTYPE="it_IT.UTF-8"
    LC_NUMERIC="it_IT.UTF-8"
    LC_TIME="it_IT.UTF-8"
    LC_COLLATE="it_IT.UTF-8"
    ...
    
    then type: sudo locale-gen <your locale>
    in my case:

    Code:
    sudo locale-gen it_IT.UTF-8
    then

    Code:
    sudo dpkg-reconfigure locales
    That should be all.
    Source: http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue

    UDOO rocks.
     
  2. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    Thanks, nice tip there.

    I just hope people use the search if they have this issue.
     
  3. chnyc

    chnyc New Member

    Joined:
    Dec 30, 2013
    Messages:
    5
    Likes Received:
    0
    This did the trick for me on Ubuntu 12.04 v2:

    apt-get install language-pack-en export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    locale-gen en_US.UTF-8
    dpkg-reconfigure locales
     
  4. andypugh

    andypugh New Member

    Joined:
    Nov 28, 2013
    Messages:
    26
    Likes Received:
    0
    As a third alternative, this worked for me:
    sudo apt-get install --reinstall language-pack-en

    . I don't know if I needed the sudo
    . I don't know if you need to choose the pack for your own language. It seemed to install a lot of languages other than english for me.
     

Share This Page