Archive for 27/08/2010
Solution for error: /usr/bin/mandb: can’t set the locale; make sure $LC_* and $LANG are correct
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.