I'm trying to install some packages like Zeroconf and TightVNC. Install seems to go fine but each time I get a notice like this in Terminal:

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

Is this something I need to worry about or can easily fix?


2 Answers 2


Commenting out SendEnv LANG LC_* in my mac's /etc/ssh_config fixed it!


With latest Raspbian release Jessie, you can set the LC_ALL to value C in ~/.bashrc file and everything else would set to what you choose and you wouldn't get any warning or error messages. Here's how -

Open your .bashrc file with nano editor -

sudo nano ~/.bashrc

Now add below line to the end of the file -

export LC_ALL=C

Save the file, reboot your Pi and everything should be fixed. Hope it helps.

  • was already fixed, but thanks for the tip anyway, could prove useful in the future. Out of curiosity: why do you wrap backticks around ~/.bashrc? It works fine without them.
    – thibmaek
    Commented Dec 29, 2015 at 0:01
  • Oops..! It was a typo mistake, i wanted to highlight it as a code block. Removed it. Thanks for letting me know.
    – giri-sh
    Commented Dec 29, 2015 at 10:00
  • Why the sudo?
    – youri
    Commented Apr 7, 2017 at 16:22
  • Just a precaution if you dont have admin access to the file.
    – giri-sh
    Commented Apr 9, 2017 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.