warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
When accessing a brand new Debian host over ssh from a MacOS desktop, I kept on getting warnings during login:
last login: Thu Nov 27 20:55:03 2025 from 192.168.1.1
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Googling around for solution did not yield any working solution, so I'm making a note to myself for future:
sudo localedef -i en_US -f UTF-8 $LC_CTYPE
Comments
Post a Comment