Fix for Setting locale failed – Ubuntu

Balaji D Loganathan

15 sec read

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
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Re-login to your ssh. It should work fine.

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *