[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: locale problem



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

Attachment: signature.asc
Description: Digital signature


Reply to: