"Locale" error when using "dpkg-reconfigure tzdata" command

* - Edit

I found this, and it seems working

http://www.quora.com/Mac-Tech-Support/H … tab-button">http://www.quora.com/Mac-Tech-Support/How-can-we-fix-SSH-locale-problem-in-Mac-OS-X-10-7-Lion-user-servername-cd-var-bash-warning-setlocale-LC_CTYPE-cannot-change-locale-UTF-8-when-we-push-tab-button

It seems to be mac terminal related, and not my linode..

I was not looking at the right direction :wink:

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 :D

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

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

@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!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct