Skip navigation

The fix (change to whatever language or version of english you’re using eg en_GB):

apt-get install language-pack-en-base


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

If you get the following warning below for apt-get or dpkg in ubuntu:

perl: warning: Please check that your locale settings ubuntu

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_US.UTF-8″,
LC_ALL = “en_US.UTF-8″,
LANG = “en_US.UTF-8″
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

About these ads

5 Comments

  1. Thanks much! Cleared up such an error for us with a hosting providers Ubuntu 8.04 VPS preload.

  2. Even after doing as you mentioned above it did not worked for me.
    I am on Ubuntu 10.10

  3. btw, do you know how to fix on debian ?

  4. Yes! Great tip. Was trying to get gpodder to run in openbox,and it was saying:

    (process:1777): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback ‘C’ locale.
    Traceback (most recent call last):
    File “/usr/bin/gpodder”, line 201, in

    (….)

    return _setlocale(category, locale)
    locale.Error: unsupported locale setting

    Tried a load of tips but your was the one.

    THANKS.

  5. Thank you. Is work on UBUNTU 10_64 FOSS


One Trackback/Pingback

  1. [...] locales with the according locales you need for your system. For that thanks goes to Hone WatsonProblem 2: Ruby 1.9.2 without RVMAfter that the first thing I wanted to do was to get a running [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: