Tuesday, March 19, 2013

Fixing locale on Ubuntu



Do you have such this problem?

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

Well,  l don't know why that always happen after installed Ubuntu.  :(

And here's how to fix it.

1. Edit /etc/default/locale and put this line,


LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LANGUAGE="en_US:en"

2. If you don't have that file (I have that situation on ubuntu lxc container), just create new one for you.

3. Logout and login again. Sorry, I still don't know another way to active it. Hehe...

No comments:

Post a Comment