Sometimes while I setup new server I have following errors:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
And I have simple solution to fix this issue!
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
After last command select UTF-8 as default.
Then export LC_ALL="en_US.UTF-8" then edit /etc/ssh/ssh_config and comment out SendEnv LANG LC_* line.
That’s all! Enjoy!