If you get the error on your Ubuntu like
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”
The quick and easy fix is:
Edit the file ~/.profile (nano ~/.profile) and the below two lines on the bottom
Re-login to your ssh. It should work fine.
Fix for Setting locale failed – Ubuntu
15 sec read