Solution for error: /usr/bin/mandb: can’t set the locale; make sure $LC_* and $LANG are correct
27/08/2010 at 10:54 2 comments
Cron sends an email every day with the errors that were in the jobs processed. I got this one:
/etc/cron.daily/man-db:/usr/bin/mandb: can’t set the locale; make sure $LC_* and $LANG are correct
Here is the solution. You need to generate locales for your $LANG defined in this file: /etc/environment. Here is how mine looks:
LANG=”en_GB.UTF-8″PATH=”/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
The locale generated for the system is in this file: /etc/default/locale.
So, run dpkg-reconfigure locales and choose en_GB.UTF-8, disable all others, in the next screen choose en_GB.UTF-8 as default, and this should solve the problem.
Entry filed under: Linux. Tags: $LANG, cron, Debian, Lenny, Linux, locale, mandb.
1.
Flo | 05/11/2010 at 16:02
Thank you so much, you helped me!
Since months I got a mail every day, with the same lines.
(Sorry for not the best english…
)
2.
Petre | 05/11/2010 at 16:53
I’m glad that I could help.
Cheers