Re: Bug#467290: how to setup good LANG environment for aptitude ?
Hi,
since this is not an aptitude problem and the bug is already closed,
let's move to debian-i18n list and skip the bug report.
On Sat, Apr 12, 2008 at 01:08:33PM +0200, Michel BRIAND wrote:
> Sven Joachim <svenjoac@gmx.de> - Fri, 11 Apr 2008 16:32:54 +0200
>
> >On 2008-02-24 14:32 +0100, Michel BRIAND wrote:
> >
> >> Package: aptitude
> >> Version: 0.4.10-1+b2
> >> Severity: minor
> >>
> >> I'm using aptitude with sudo and I always get those messages
> >> with aptitude is running installation :
> >>
> >>
> >> perl: warning: Setting locale failed.
> >> perl: warning: Please check that your locale settings:
> >> LANGUAGE = (unset),
> >> LC_ALL = (unset),
> >> LANG = "en"
> >> 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
> >
> >I cannot reproduce this at all, in any case it almost certainly has
> >nothing to do with aptitude, but is some misconfiguration on your side.
> >
> >> How to get a good environment for it ?
> >>
> >> I don't want to have LANG= set in /etc/environment. I have LANG= set
> >> in ~/.bash_profile and only there.
> >
> >Should be fine. Please post
> >
> >- the contents of /etc/environment and /etc/default/locale
> > (if these files exist)
> >
> >- the output of `sudo locale' and `sudo printenv'
> >
> >- the value of env_reset in /etc/sudoers
> >
> >TIA,
> > Sven
>
> Hi,
>
> - my /etc/environment contains:
> LANG=POSIX
>
> - sudo locale gives me:
> LANG=fr_FR@euro
> LANGUAGE=fr
> LC_CTYPE="fr_FR@euro"
> LC_NUMERIC="fr_FR@euro"
> LC_TIME="fr_FR@euro"
> LC_COLLATE="fr_FR@euro"
> LC_MONETARY="fr_FR@euro"
> LC_MESSAGES="fr_FR@euro"
> LC_PAPER="fr_FR@euro"
> LC_NAME="fr_FR@euro"
> LC_ADDRESS="fr_FR@euro"
> LC_TELEPHONE="fr_FR@euro"
> LC_MEASUREMENT="fr_FR@euro"
> LC_IDENTIFICATION="fr_FR@euro"
> LC_ALL=
>
> - in /etc/sudoers, there is:
> Defaults env_reset
>
> >Right, I'm nearly sure there is no "en" locale on this system
> >installed.
> >Calling "dpkg-reconfigure locales" as root and selecting an English
> >locale should be sufficient.
> >Jens
>
> Yes, I've done that, and now
>
> - in /etc/default/locale there is:
> LANG=en_US
Please check also /etc/environment which contained in the past
a language setting as well and some programs (e.g. GNOME) could
still expect it. The proper location is indeed /etc/default/locale.
If you want English messages you could also use
LANG=C
hich doesn't require locale support!??
> - sudo aptitude runs in English
>
> - I've launched an upgrade, and seen:
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE = (unset),
> LC_ALL = (unset),
> LANG = "en"
> are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
>
>
> Here is all that I can do to help report more information.
Maybe you just have to reboot (or switch temporarily to run level 1 via
init 1?).
Jens
Reply to: