![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
|
|
#1 |
|
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.
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" Code:
sudo locale-gen sudo dpkg-reconfigure locales 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. |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
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 |
|
|
|
|
|
#4 |
|
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 Kkl |
|
|
|
|
|
#5 |
|
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.
|
|
|
|
|
|
#6 |
|
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 |
|
|
|
|
|
#7 | ||||
|
First Cup of Ubuntu
![]() |
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:
Quote:
I run dpkg-reconfigure locales I get: Quote:
Quote:
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 |
||||
|
|
|
|
|
#8 |
|
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 incubus |
|
|
|
|
|
#9 |
|
Spilled the Beans
![]() |
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:~$ |
|
|
|
|
|
#10 |
|
Spilled the Beans
![]() |
This problem was finally solved adding the following lines in the terminal:
cd /usr/lib/locale sudo ln -s es_ES.utf8 es_ES |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|