Issues with locale on a Ubuntu Droplet?

Posted February 12, 2015 3.9k views

Installing MySQL right now, keep seeing these messages:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Initially a message popped up that said there was location issues or something like that.

Typed in these two things (the first one, the language pack, couldn’t be found, so I typed in the second command instead).

sudo apt-get install language-pack-UTF-8
sudo locale-gen UTF-8

Please help. Thanks.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

export LCALL =“enUS.UTF-8”
export LC_TYPE =“UTF-8”

After that:

sudo dpkg-reconfigure locales

Worked for me.