Cannot set LC_CTYPE to default locale: No such file or directory

Fix:

First run locale to list what locales you are supposed to have:

# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_IN
LANGUAGE=
LC_CTYPE="en_IN"
LC_NUMERIC="en_IN"
LC_TIME="en_IN"
LC_COLLATE="en_IN"
LC_MONETARY="en_IN"
LC_MESSAGES="en_IN"
LC_PAPER="en_IN"
LC_NAME="en_IN"
LC_ADDRESS="en_IN"
LC_TELEPHONE="en_IN"
LC_MEASUREMENT="en_IN"
LC_IDENTIFICATION="en_IN"
LC_ALL=

Generate the missing locale and reconfigure locales

# locale-gen en_IN
Generating locales...
  en_IN.UTF-8... done
Generation complete.
[email protected]:~# dpkg-reconfigure locales
Generating locales...
  en_IN.UTF-8... up-to-date
Generation complete.