Find the answer to your Linux question:
Results 1 to 2 of 2
I'm unable to set my locale to no_NO.UTF-8. I'm on a box running ubuntu 10.04, installed trough unetbootin yesterday. I have run Code: sudo aptitude update && sudo aptitude safe-upgrade ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    85

    Missing locale[Solved]

    I'm unable to set my locale to no_NO.UTF-8.

    I'm on a box running ubuntu 10.04, installed trough unetbootin yesterday. I have run

    Code:
    sudo aptitude update && sudo aptitude safe-upgrade
    The output of

    Code:
    locale
    is

    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=no_NO.UTF-8
    LC_CTYPE="no_NO.UTF-8"
    LC_NUMERIC="no_NO.UTF-8"
    LC_TIME="no_NO.UTF-8"
    LC_COLLATE="no_NO.UTF-8"
    LC_MONETARY="no_NO.UTF-8"
    LC_MESSAGES="no_NO.UTF-8"
    LC_PAPER="no_NO.UTF-8"
    LC_NAME="no_NO.UTF-8"
    LC_ADDRESS="no_NO.UTF-8"
    LC_TELEPHONE="no_NO.UTF-8"
    LC_MEASUREMENT="no_NO.UTF-8"
    LC_IDENTIFICATION="no_NO.UTF-8"
    LC_ALL=
    Output of

    Code:
    locale -a
    is

    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_COLLATE to default locale: No such file or directory
    C
    POSIX
    en_AG
    en_AU.utf8
    en_BW.utf8
    en_CA.utf8
    en_DK.utf8
    en_GB.utf8
    en_HK.utf8
    en_IE.utf8
    en_IN
    en_NG
    en_NZ.utf8
    en_PH.utf8
    en_SG.utf8
    en_US.utf8
    en_ZA.utf8
    en_ZW.utf8
    Notice the lack of no_NO in that list.

    Output of

    Code:
    cat /etc/locale.gen
    is

    # /etc/locale.gen: list all of the locales you want to have on your system
    #
    # The format of each line:
    # <locale> <charmap>
    #
    # Where <locale> is a locale located in /usr/share/i18n/locales/ and
    # where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
    #
    # All blank lines and lines starting with # are ignored.
    #
    # For the default list of supported combinations, see the file:
    # /usr/share/i18n/SUPPORTED
    #
    # Whenever glibc is emerged, the locales listed here will be automatically
    # rebuilt for you. After updating this file, you can simply run `locale-gen`
    # yourself instead of re-emerging glibc.
    #en_US.UTF-8 UTF-8
    LANG=no_NO.UTF-8 UTF-8
    I have also tried it with the last line reading

    Code:
    no_NO.UTF-8 UTF-8
    Output of

    Code:
    sudo locale-gen
    is

    Generating locales...
    en_AG.UTF-8... up-to-date
    en_AU.UTF-8... up-to-date
    en_BW.UTF-8... up-to-date
    en_CA.UTF-8... up-to-date
    en_DK.UTF-8... up-to-date
    en_GB.UTF-8... up-to-date
    en_HK.UTF-8... up-to-date
    en_IE.UTF-8... up-to-date
    en_IN.UTF-8... up-to-date
    en_NG.UTF-8... up-to-date
    en_NZ.UTF-8... up-to-date
    en_PH.UTF-8... up-to-date
    en_SG.UTF-8... up-to-date
    en_US.UTF-8... up-to-date
    en_ZA.UTF-8... up-to-date
    en_ZW.UTF-8... up-to-date
    no_NO.UTF-8... cannot open locale definition file `no_NO': No such file or directory
    failed
    no_NO.utf-8... character map file `utf-8' not found: No such file or directory
    cannot open locale definition file `no_NO': No such file or directory
    failed
    Generation complete.
    while

    Code:
     sudo locale-gen no_NO.UTF-8
    yields no output.
    Last edited by memius; 08-11-2011 at 04:08 PM. Reason: solved

  2. #2
    Just Joined!
    Join Date
    Oct 2006
    Posts
    85
    Sorry to bother you all with this. The answer stared me in the face after I posted; the file mentioned in /etc/locale.gen (/usr/share/i18n/SUPPORTED) does not mention no_NO, but nb_NO and nn_NO, the two variants of written norwegian. I simply substituted nb for no, and all was well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...