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
5 Comments
Thanks much! Cleared up such an error for us with a hosting providers Ubuntu 8.04 VPS preload.
Even after doing as you mentioned above it did not worked for me.
I am on Ubuntu 10.10
btw, do you know how to fix on debian ?
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.
Thank you. Is work on UBUNTU 10_64 FOSS
One Trackback/Pingback
[…] 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 […]