Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Troubleshooting • -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

$
0
0
I just flashed a brand new RPi 5 and I'm getting

Code:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
This also shows up when using apt:

Code:

perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LANGUAGE = "en_US.UTF-8",LC_ALL = (unset),LC_CTYPE = "UTF-8",LC_NUMERIC = (unset),LC_COLLATE = (unset),LC_TIME = (unset),LC_MESSAGES = (unset),LC_MONETARY = (unset),LC_ADDRESS = (unset),LC_IDENTIFICATION = (unset),LC_MEASUREMENT = (unset),LC_PAPER = (unset),LC_TELEPHONE = (unset),LC_NAME = (unset),LANG = "en_US.UTF-8"    are supported and installed on your system.perl: warning: Falling back to a fallback locale ("en_US.UTF-8").locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directory

Code:

cat /etc/default/locale#  File generated by update-localeLANG=en_US.UTF-8

Code:

env|egrep 'LANG|LC_'LANG=en_US.UTF-8LC_CTYPE=UTF-8LC_ALL=en_US.UTF-8
On the mac that I'm using to log in to RPi:

Code:

env|egrep 'LANG|LC_'LANG=en_US.UTF-8LC_ALL=en_US.UTF-8LC_CTYPE=UTF-8

Statistics: Posted by frostysocks — Thu Jan 15, 2026 2:38 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles