September 1, 2020

RaspberryPi Locale Issue

RaspberryPi locale fix.

If you encounter a locale issue with errors like so...

LC_ALL: cannot change locale (en_US.UTF-8)

or

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

Just run

sudo dpkg-reconfigure locales

and configure it for your language.

Source : https://www.thomas-krenn.com/en/wiki/Perl_warning_Setting_locale_failed_in_Debian