Sven Joachim <[EMAIL PROTECTED]> - 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: [EMAIL PROTECTED] LANGUAGE=fr LC_CTYPE="[EMAIL PROTECTED]" LC_NUMERIC="[EMAIL PROTECTED]" LC_TIME="[EMAIL PROTECTED]" LC_COLLATE="[EMAIL PROTECTED]" LC_MONETARY="[EMAIL PROTECTED]" LC_MESSAGES="[EMAIL PROTECTED]" LC_PAPER="[EMAIL PROTECTED]" LC_NAME="[EMAIL PROTECTED]" LC_ADDRESS="[EMAIL PROTECTED]" LC_TELEPHONE="[EMAIL PROTECTED]" LC_MEASUREMENT="[EMAIL PROTECTED]" LC_IDENTIFICATION="[EMAIL PROTECTED]" 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 - 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. Thank you very much, Michel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]