Quoting Frank (debianl...@videotron.ca):
> On 03/14/2015 04:03 PM, Bob Proulx wrote:
> >Frank wrote:
> >>The past few days I've been getting mail from anacron
> >>about errors like this:
> >>
> >>/etc/cron.daily/man-db:
> >>/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
> >
> >Somewhere along the way you have set the default system locale to one
> >that doesn't exist.  What is the value stored here:
> >
> >   cat /etc/default/locale
> >
> >Is that a valid locale on your system?
> 
> 
> frank@frank-debian:~$ cat /etc/default/locale
> LC_ALL=en_US.UTF-8
> LANGUAGE=en_US.UTF-8
> 
> Is this what should be in /etc/default/locale ??

Not at all.
Here's a US wheezy:

$ cat /etc/default/locale
#  File generated by update-locale
LANG="en_US.UTF-8"
$

and a UK wheezy→jessie:

$ cat /etc/default/locale
#  File generated by update-locale
LANG="en_GB.UTF-8"
LANGUAGE="en_GB:en"
$

The lack of #  File generated by update-locale in the file suggests
that someone/something wrote it themselves.

This is what those two systems give in response to locale:

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$

$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
$

I wouldn't recommend setting LC_ALL to anything.

Cheers,
David.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150314225552.ga31...@alum.home

Reply via email to