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

Troubleshooting • Re: Can't change locale (en_US.UTF-8) in Trixie

$
0
0
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
That locale setting is valid, but the "No such file or directory" suggests that it has not been "generated", in Debian parlance.

You mention headless, so it is possible that the locale is being passed in via SSH from the client, and does not match the locale you have set on the Pi itself. Make sure you selected en_US.UTF-8, and not just en_US (which is non-Unicode).

You mention uncommenting en_US.UTF-8 in /etc/locale.gen. It should not have been commented out, if you had already selected it in raspi-config. But if you did need to uncomment it manually, then you also need to manually run sudo locale-gen to effect the change.

Finally, you could try sudo apt install locales-all. That makes all locales available, without the need to generate, at the cost of some disk space.
it's slow try a reboot
Rebooting is never likely to fix a "No such file or directory". But if you think it was taking time, then suggesting a reboot is even weirder. You would be killing the process that was slowly doing the thing!

Statistics: Posted by jojopi — Fri Nov 21, 2025 5:26 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles