initdb.bin: invalid locale settings; check LANG and LC_* environment variables

Jithin U. Ahmed picture Jithin U. Ahmed · Jan 31, 2017 · Viewed 12.7k times · Source

When I tried to install bitnami odoo 9 in my ubuntu system via terminal, I got the following error message.

How to solve this issue?

initdb.bin: invalid locale settings; check LANG and LC_* environment variables

Thanks in advance!

Answer

Karthik CP picture Karthik CP · Feb 8, 2017

The issue solved when i used the following commands

LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"

For Unix you have to be

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"