PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Locale Problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Locale Problem

Réponse
 
LinkBack Outils de la discussion
Vieux 14/11/2007, 05h20   #1
Jeff Grossman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Locale Problem

I get the following error messages whenever I update or install a
program with aptitude:

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

How would I go about fixing this problem?

Jeff


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 06h00   #2
Kumar Appaiah
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
> I get the following error messages whenever I update or install a program
> with aptitude:
>
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:

[snip]

The simplest thing would be to set export LANG=en_US (or similar) in
your bashrc. But the proper way would be to run dpkg-reconfigure
locales and choose only the locales you are intersted in and set the
right default locale.

HTH.

Kumar
--
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 06h00   #3
Kevin Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
> I get the following error messages whenever I update or install a program
> with aptitude:
>
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE = "en_US",
> LC_ALL = "en_US.UTF-8 UTF-8",
> LANG = "en_US"
> 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
>
> How would I go about fixing this problem?
>
> Jeff
>
>


Do you have the locales package installed?

--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to Debian! |
|_______ Unless I ask to be CCd, assume I am subscribed _______|


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 14h00   #4
Jeff Grossman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

Kumar Appaiah wrote:
> On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
>
>> I get the following error messages whenever I update or install a program
>> with aptitude:
>>
>> perl: warning: Setting locale failed.
>> perl: warning: Please check that your locale settings:
>>

> [snip]
>
> The simplest thing would be to set export LANG=en_US (or similar) in
> your bashrc. But the proper way would be to run dpkg-reconfigure
> locales and choose only the locales you are intersted in and set the
> right default locale.
>
> HTH.
>
> Kumar
>

I have run the "dpkg-reconfigure locales" command numerous times. Here
is the output of my /etc/locale.gen file:

root@apple /etc # less locale.gen
# This file lists locales that you wish to have built. You can find a list
# of valid supported locales at /usr/share/i18n/SUPPORTED. Other
# combinations are possible, but may not be well tested. If you change
# this file, you need to rerun locale-gen.
#

en_US.UTF-8 UTF-8

en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
root@apple /etc #

And, here is what I have in my bash.bashrc file:

export LC_ALL="en_US.UTF-8 UTF-8"
export LANG="en_US"
export LANGUAGE="en_US"

And, I get the error about the missing locale files. If I change the
"export LC_ALL="en_US.UTF-8 UTF-8" to "export LC_ALL="en_US" then I do
not get the error from Perl. But, I do get the following output when I
run 'aptitude update' which seems weird to me:

Get:1 http://ftp.us.debian.org stable Release.gpg [378B]
Ign http://ftp.us.debian.org stable/main Translation-en_US
Ign http://ftp.us.debian.org stable/contrib Translation-en_US

What seems weird to me is the "Translation-en_US" part. I don't have
that output if I use hte UTF-8 version of the locale.

I guess one of my main questions is, what LC_ALL, LANG, and LANGUAGE
settings do I use for US/English?

Thanks,
Jeff


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 20h10   #5
Florian Kulzer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

On Wed, Nov 14, 2007 at 05:58:26 -0800, Jeff Grossman wrote:
> Kumar Appaiah wrote:
>> On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
>>
>>> I get the following error messages whenever I update or install a program
>>> with aptitude:
>>>
>>> perl: warning: Setting locale failed.
>>> perl: warning: Please check that your locale settings:
>>>

>> [snip]
>>
>> The simplest thing would be to set export LANG=en_US (or similar) in
>> your bashrc. But the proper way would be to run dpkg-reconfigure
>> locales and choose only the locales you are intersted in and set the
>> right default locale.
>>
>> HTH.
>>
>> Kumar
>>

> I have run the "dpkg-reconfigure locales" command numerous times. Here is
> the output of my /etc/locale.gen file:
>
> root@apple /etc # less locale.gen
> # This file lists locales that you wish to have built. You can find a list
> # of valid supported locales at /usr/share/i18n/SUPPORTED. Other
> # combinations are possible, but may not be well tested. If you change
> # this file, you need to rerun locale-gen.
> #
>
> en_US.UTF-8 UTF-8
>
> en_US ISO-8859-1
> en_US.ISO-8859-15 ISO-8859-15
> root@apple /etc #
>
> And, here is what I have in my bash.bashrc file:
>
> export LC_ALL="en_US.UTF-8 UTF-8"


I think that should be

export LC_ALL="en_US.UTF-8"

> export LANG="en_US"
> export LANGUAGE="en_US"
>
> And, I get the error about the missing locale files. If I change the
> "export LC_ALL="en_US.UTF-8 UTF-8" to "export LC_ALL="en_US" then I do not
> get the error from Perl. But, I do get the following output when I run
> 'aptitude update' which seems weird to me:
>
> Get:1 http://ftp.us.debian.org stable Release.gpg [378B]
> Ign http://ftp.us.debian.org stable/main Translation-en_US
> Ign http://ftp.us.debian.org stable/contrib Translation-en_US
>
> What seems weird to me is the "Translation-en_US" part. I don't have that
> output if I use hte UTF-8 version of the locale.
>
> I guess one of my main questions is, what LC_ALL, LANG, and LANGUAGE
> settings do I use for US/English?


AFAIK, it should be either "en_US" if you want to use ISO-8859-1
encoding, en_US.ISO-8859-15 for ISO-8859-15, or en_US.UTF-8 for UTF-8.
Just setting LC_ALL should be enough since it forces all the other LC_*
variables and LANG to the same value. (You can check by running
"locale".) I don't think LANGUAGE is needed at all, LANG determines the
language of your localized messages.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 20h30   #6
Kelly Clowers
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

On Nov 14, 2007 5:58 AM, Jeff Grossman <jeff@stikman.com> wrote:
> Kumar Appaiah wrote:
> > On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
> >
> >> I get the following error messages whenever I update or install a program
> >> with aptitude:
> >>
> >> perl: warning: Setting locale failed.
> >> perl: warning: Please check that your locale settings:
> >>

> > [snip]
> >
> > The simplest thing would be to set export LANG=en_US (or similar) in
> > your bashrc. But the proper way would be to run dpkg-reconfigure
> > locales and choose only the locales you are intersted in and set the
> > right default locale.
> >
> > HTH.
> >
> > Kumar
> >

> I have run the "dpkg-reconfigure locales" command numerous times. Here
> is the output of my /etc/locale.gen file:
>
> root@apple /etc # less locale.gen
> # This file lists locales that you wish to have built. You can find a list
> # of valid supported locales at /usr/share/i18n/SUPPORTED. Other
> # combinations are possible, but may not be well tested. If you change
> # this file, you need to rerun locale-gen.
> #
>
> en_US.UTF-8 UTF-8
>
> en_US ISO-8859-1
> en_US.ISO-8859-15 ISO-8859-15
> root@apple /etc #
>
> And, here is what I have in my bash.bashrc file:
>
> export LC_ALL="en_US.UTF-8 UTF-8"
> export LANG="en_US"
> export LANGUAGE="en_US"
>
> And, I get the error about the missing locale files. If I change the
> "export LC_ALL="en_US.UTF-8 UTF-8" to "export LC_ALL="en_US" then I do
> not get the error from Perl. But, I do get the following output when I
> run 'aptitude update' which seems weird to me:
>
> Get:1 http://ftp.us.debian.org stable Release.gpg [378B]
> Ign http://ftp.us.debian.org stable/main Translation-en_US
> Ign http://ftp.us.debian.org stable/contrib Translation-en_US
>
> What seems weird to me is the "Translation-en_US" part. I don't have
> that output if I use hte UTF-8 version of the locale.
>
> I guess one of my main questions is, what LC_ALL, LANG, and LANGUAGE
> settings do I use for US/English?


LC_ALL overrides everything else. It is often left unset, and each of the
other LC values specified individually, so that one of them could be
changed without going back and also unsetting LC_ALL. But it doesn't
hurt to just use LC_ALL.

The form "en_US.UTF-8 UTF-8" is wrong, it should always be
"$language_$VARIANT.$ENCODING" - eg "en_US.UTF-8".
I think leaving off the encoding defaults to "C" (ASCII), or
maybe ISO.

Instead of setting the values in bashrc, you could put them
in /etc/default/locale. On my system there is also a
/etc/default/locale.dpkg-dist. I don't know what it is for but
unlike the "locale" file it had a nice commented list of all
LC variables, so I copied it over "locale" and gave everything
except LANGUAGE, LC_ALL and LC_TIME values of
en_US.UTF-8. I use en_DK.UTF-8 for time, because I like
ls -l to list times as YYYY-MM-DD HH:MM (24 hour clock).
I left LANGUAGE and LC_ALL unset.


Cheers,
Kelly Clowers


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 14/11/2007, 20h30   #7
Bogart Salzberg
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

I received these same warnings when I removed the "locales" package
as part of an upgrade of libc6. I had to install the locales package
from testing in order to remain compatible. On a second machine I
updated libc6, tzdata and locales from testing all at once and it
worked well.

Bogart

On Nov 14, 2007, at 2:50 PM, Florian Kulzer wrote:

> On Wed, Nov 14, 2007 at 05:58:26 -0800, Jeff Grossman wrote:
>> Kumar Appaiah wrote:
>>> On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
>>>
>>>> I get the following error messages whenever I update or install
>>>> a program
>>>> with aptitude:
>>>>
>>>> perl: warning: Setting locale failed.
>>>> perl: warning: Please check that your locale settings:
>>>>
>>> [snip]
>>>
>>> The simplest thing would be to set export LANG=en_US (or similar) in
>>> your bashrc. But the proper way would be to run dpkg-reconfigure
>>> locales and choose only the locales you are intersted in and set the
>>> right default locale.
>>>
>>> HTH.
>>>
>>> Kumar
>>>

>> I have run the "dpkg-reconfigure locales" command numerous times.
>> Here is
>> the output of my /etc/locale.gen file:
>>
>> root@apple /etc # less locale.gen
>> # This file lists locales that you wish to have built. You can
>> find a list
>> # of valid supported locales at /usr/share/i18n/SUPPORTED. Other
>> # combinations are possible, but may not be well tested. If you
>> change
>> # this file, you need to rerun locale-gen.
>> #
>>
>> en_US.UTF-8 UTF-8
>>
>> en_US ISO-8859-1
>> en_US.ISO-8859-15 ISO-8859-15
>> root@apple /etc #
>>
>> And, here is what I have in my bash.bashrc file:
>>
>> export LC_ALL="en_US.UTF-8 UTF-8"

>
> I think that should be
>
> export LC_ALL="en_US.UTF-8"
>
>> export LANG="en_US"
>> export LANGUAGE="en_US"
>>
>> And, I get the error about the missing locale files. If I change the
>> "export LC_ALL="en_US.UTF-8 UTF-8" to "export LC_ALL="en_US" then
>> I do not
>> get the error from Perl. But, I do get the following output when
>> I run
>> 'aptitude update' which seems weird to me:
>>
>> Get:1 http://ftp.us.debian.org stable Release.gpg [378B]
>> Ign http://ftp.us.debian.org stable/main Translation-en_US
>> Ign http://ftp.us.debian.org stable/contrib Translation-en_US
>>
>> What seems weird to me is the "Translation-en_US" part. I don't
>> have that
>> output if I use hte UTF-8 version of the locale.
>>
>> I guess one of my main questions is, what LC_ALL, LANG, and LANGUAGE
>> settings do I use for US/English?

>
> AFAIK, it should be either "en_US" if you want to use ISO-8859-1
> encoding, en_US.ISO-8859-15 for ISO-8859-15, or en_US.UTF-8 for UTF-8.
> Just setting LC_ALL should be enough since it forces all the other
> LC_*
> variables and LANG to the same value. (You can check by running
> "locale".) I don't think LANGUAGE is needed at all, LANG determines
> the
> language of your localized messages.
>
> --
> Regards, | http://users.icfo.es/Florian.Kulzer
> Florian |
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/11/2007, 09h20   #8
Chris Bannister
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Locale Problem

On Wed, Nov 14, 2007 at 12:57:31AM -0500, Kevin Mark wrote:
> On Tue, Nov 13, 2007 at 09:18:49PM -0800, Jeff Grossman wrote:
> > I get the following error messages whenever I update or install a program
> > with aptitude:
> >
> > perl: warning: Setting locale failed.
> > perl: warning: Please check that your locale settings:
> > LANGUAGE = "en_US",
> > LC_ALL = "en_US.UTF-8 UTF-8",
> > LANG = "en_US"
> > 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
> >
> > How would I go about fixing this problem?
> >
> > Jeff
> >
> >

>
> Do you have the locales package installed?


Yeah, and I would add "dpkg-reconfigure perl" if you are still getting
those perl messages *after* setting up the locales package. I vaguely
remember going through this myself.

(In fact ol' dpkg-reconfigure is worth a shot before you start pulling
hair and hunting the web.)

--
Chris.
======


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h23.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,27155 seconds with 16 queries