|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Ever since installing Sarge last month I've been plagued with these
locale error messages from perl apps like mandb & syslogd-listfiles. 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 or perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en_GB:en", LC_ALL = "en_US", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). This when LANG, LANGUAGE & LC_ALL are indeed set as shown above in the environment. mike@deb31:~> echo $LANG $LANGUAGE $LC_ALL en_US en_US:en_GB:en en_US I finally got this to go away using the following steps: mike@deb31:~> dpkg -P localepurge mike@deb31:~> apt-get install locales localeconf after configuration, mike@deb31:~/tmp> cp /usr/lib/locale/locale-archive . mike@deb31:~> dpkg -P locales localeconf mike@deb31:~/tmp> md /usr/lib/locale/ mike@deb31:~/tmp> mv locale-archive /usr/lib/locale/ mike@deb31:~> apt-get install localepurge I'm sure I took the long route and hope one of you can tell me what the easy way would have been. TIA, Mike -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Thu, Feb 22, 2007 at 11:41:56AM -0800, Mike McClain wrote:
> Ever since installing Sarge last month I've been plagued with these > locale error messages from perl apps like mandb & syslogd-listfiles. > > 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 finally got this to go away using the following steps: > mike@deb31:~> dpkg -P localepurge > mike@deb31:~> apt-get install locales localeconf > after configuration, > mike@deb31:~/tmp> cp /usr/lib/locale/locale-archive . > mike@deb31:~> dpkg -P locales localeconf > mike@deb31:~/tmp> md /usr/lib/locale/ > mike@deb31:~/tmp> mv locale-archive /usr/lib/locale/ > mike@deb31:~> apt-get install localepurge > > I'm sure I took the long route and hope one of you can tell me what the > easy way would have been. the easy way would have been to just install locales, if not installed, or just dpkg-reconfigure locales if it was installed. And then you could have dpkg-reconfigured localepurge and make sure you selected one of your generated locales to *keep*. So, not really any easier, I guess. A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF3h5ZaIeIEqwil4YRAj/RAKDJ9QILsTPy5zH8eBoBFfsvhISzuwCg2Sjk 9F9nSKCWrOcv6MP0ljCQhZc= =ex3B -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|