"Locale" error when using "dpkg-reconfigure tzdata" command
I found this, and it seems working
It seems to be mac terminal related, and not my linode..
I was not looking at the right direction
Thanks
- *
Hello here,
I'm pretty much a newbie, and new to linode as well.
I was wondering if I can get a little help
When I try to set up the date setting timezone with:
dpkg-reconfigure tzdata
My terminal (I'm on Mac) returning me the following error:
root@XXXXXXXX:~# dpkg-reconfigure tzdata
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Do you know how I can fix it?
Thanks you very much,
2 Replies
export LCCTYPE=enUS.UTF-8
export LCALL=enUS.UTF-8
To fix it for the future as well:
echo "export LCCTYPE=enUS.UTF-8" >> ~/.bashrc
echo "export LCALL=enUS.UTF-8" >> ~/.bashrc
@Nuvini:
In your current terminal on your Linode do:
export LCCTYPE=enUS.UTF-8
export LCALL=enUS.UTF-8
To fix it for the future as well:
echo "export LCCTYPE=enUS.UTF-8" >> ~/.bashrc
echo "export LCALL=enUS.UTF-8" >> ~/.bashrc
Thanks Nuvini!