Setting Locale Fail Debian9

From MS Computech
Jump to: navigation, search

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:

apt-get install multipath-tools
locale-gen en_US.UTF-8
localedef -i en_US -f UTF-8 en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

Cent OS 7 Edit /etc/environment and add the following. Replace en_US with your actual locale if you are not using en_US:

LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"