Fix SSH locale environment problems on Ubuntu Server #41


In this tutorial you will learn how to fix SSH locale environment problems on Ubuntu Server.
This will resolve errors like this:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MONETARY = "ro_RO.UTF-8",
LC_ADDRESS = "ro_RO.UTF-8",
LC_TELEPHONE = "ro_RO.UTF-8",
LC_NAME = "ro_RO.UTF-8",
LC_MEASUREMENT = "ro_RO.UTF-8",
LC_IDENTIFICATION = "ro_RO.UTF-8",
LC_NUMERIC = "ro_RO.UTF-8",
LC_PAPER = "ro_RO.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_ALL to default locale: No such file or directory

Code used during this tutorial: