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: , , , , , , .

Error when installing gem on debian lenny Vmware server 2 performance problems

2 Comments Add your own

  • 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… ;) )

    Reply
  • 2. Petre  |  05/11/2010 at 16:53

    I’m glad that I could help.
    Cheers

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


 

August 2010
M T W T F S S
« Jun   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Follow

Get every new post delivered to your Inbox.

Join 31 other followers