Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > x86 64-bit Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

x86 64-bit Users
For the discussion of Ubuntu on the AMD 64 platform.

 
Thread Tools Display Modes
Old December 15th, 2006   #1
jthompson
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 17
Perl warning: Setting locale failed

Ok I've read a thousand posts on this issue. I am having this issue with 64 bit Edgy.

Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.ISO-8859-15"
    are supported and installed on your system.
This is driving me nuts. I recently grabbed the update to the kernel from the update thingy. I have tried all of the following and nothing works.
Code:
/etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
Code:
/etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.ISO-8859-15"
LANGUAGE="en_US:en"
I have tried:
Code:
sudo locale-gen
sudo dpkg-reconfigure locales
I tried the package localeconf


Someone mentioned installing a later packge of locales (like version 2.5). How do you do this? The latest one I see in edgy is 2.3 something.
jthompson is offline   Reply With Quote
Old December 15th, 2006   #2
Kikoolol
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 42
Kubuntu 7.10 Gutsy Gibbon
Re: Perl warning: Setting locale failed

Hi !

I had the same kind of issue during my upgrade to edgy ... it's really annoying ! You can fix it by setting correctly the locales in the /var/lib/locales/supported.d directory. You should find some files like "en" and/or "local", then just put the extra locales you want in one of it. To finish, run "dpkg-reconfigure locales" !

Hope this helps !

Kkl
Kikoolol is offline   Reply With Quote
Old December 18th, 2006   #3
jthompson
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 17
Re: Perl warning: Setting locale failed

Ok these are what those two files look like:

Code:
en

en_US.ISO-8859-15 ISO-8859-15
en_HK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_IN UTF-8
en_ZW.UTF-8 UTF-8
en_NZ.UTF-8 UTF-8
en_PH.UTF-8 UTF-8
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
en_AU.UTF-8 UTF-8
en_SG.UTF-8 UTF-8
en_BW.UTF-8 UTF-8
en_ZA.UTF-8 UTF-8
en_CA.UTF-8 UTF-8
en_IE.UTF-8 UTF-8
Code:
local

en_US.UTF-8 UTF-8
en_US.ISO-8859-15 ISO-8859-15
I ran dpkg-reconfigure locales and I still get the same error. It always seems to happen on things written in perl.
jthompson is offline   Reply With Quote
Old December 18th, 2006   #4
Kikoolol
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 42
Kubuntu 7.10 Gutsy Gibbon
Re: Perl warning: Setting locale failed

Mine is (local) :

Code:
fr_FR ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR@euro ISO-8859-15
Maybe you should try the same with "en" instead of "fr" ? The syntax seems to be different for UTF-8 and ISO entries.

Kkl
Kikoolol is offline   Reply With Quote
Old December 18th, 2006   #5
jthompson
5 Cups of Ubuntu
 
Join Date: Dec 2006
Beans: 17
Re: Perl warning: Setting locale failed

I still get the error even after trying your suggestions. Maybe its just this one perl script. Its a setup script for the 2X terminal server. www.2x.com.
jthompson is offline   Reply With Quote
Old December 18th, 2006   #6
Kikoolol
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 42
Kubuntu 7.10 Gutsy Gibbon
Re: Perl warning: Setting locale failed

In my case, the problem happened when using apt (doing the dist-upgrade from dapper to edgy). For a lot of packages, it was displayed again & again on the terminal when "unpacking ..." & "setting ..." them. If you often upgrade your distro using apt and without seeing this kind of message, then yes I guess this particular script you are talking about may be in cause ...

Good luck !

Kkl
Kikoolol is offline   Reply With Quote
Old January 25th, 2007   #7
alvenegas
First Cup of Ubuntu
 
alvenegas's Avatar
 
Join Date: Jun 2006
Location: Puerto Rico
Beans: 12
Ubuntu 8.04 Hardy Heron
Send a message via MSN to alvenegas Send a message via Yahoo to alvenegas
Re: Perl warning: Setting locale failed

Hello,

I get the same errors and by following the various suggestions
posted here and in other threads, I still have the same problem.
I post here because I believe it is a problem of a32 vs. 64 bit.
When I use perl or other utilities (for example I get Gtk Warning
locale problems as well when invoking firefox32) I get same
sort of locale problems that fall back to 'C'.

My problem is that although for 64 bit utilities it does not complain,
for 32 it does, perhaps it has something to do with it. Any help will
be greatly appreciated,

Quote:
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
When I do 'locale -a' I get :
Quote:
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
I do not have any other locale (ISO8859) and I do not know why. Every time
I run dpkg-reconfigure locales I get:
Quote:
Generating locales...
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_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
Generation complete.
When I invoke firefox32: I get the following error:
Quote:
(firefox-bin:21674): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Any suggestions other than doing:
sudo apt-get install localeconf
dpkg-reconfigure locales

Any suggestion keeping in mind that it may be a 32 to 64bit consequence?

Thanks in andvance
alvenegas is offline   Reply With Quote
Old January 25th, 2007   #8
incubus
Dipped in Ubuntu
 
Join Date: Jan 2005
My beans are hidden!
Re: Perl warning: Setting locale failed

What about:

Code:
$ sudo apt-get install --reinstall language-pack-en
Of course, replace "en" with your language abbreviation.

incubus
incubus is offline   Reply With Quote
Old January 27th, 2007   #9
marceloramone
Spilled the Beans
 
marceloramone's Avatar
 
Join Date: Jul 2006
Location: Uruguay
Beans: 11
Xubuntu 7.04 Feisty Fawn
Send a message via MSN to marceloramone
Re: Perl warning: Setting locale failed

marcelo@marcelo:~$
marcelo@marcelo:~$ sudo apt-get install --reinstall language-pack-es
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libsmokeqt1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/180kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "es_ES",
LC_ALL = "es_ES",
LC_LANG = "es_ES",
LANG = "es_ES"
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
(Reading database ... 147473 files and directories currently installed.)
Preparing to replace language-pack-es 1:6.10+20061130 (using .../language-pack-es_1%3a6.10+20061130_all.deb) ...
Unpacking replacement language-pack-es ...
Setting up language-pack-es (6.10+20061130) ...
marcelo@marcelo:~$
marceloramone is offline   Reply With Quote
Old February 1st, 2007   #10
marceloramone
Spilled the Beans
 
marceloramone's Avatar
 
Join Date: Jul 2006
Location: Uruguay
Beans: 11
Xubuntu 7.04 Feisty Fawn
Send a message via MSN to marceloramone
Smile Re: Perl warning: Setting locale failed

This problem was finally solved adding the following lines in the terminal:

cd /usr/lib/locale

sudo ln -s es_ES.utf8 es_ES
marceloramone is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:09 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry