Photo by Anto Meneghini

Fixing locale using iTerm2 on Raspbian 11

What ? Using iTerm2 on macOS, while running any command through ssh on my Raspberry (running Raspian 11), I was getting this warning ... 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_COLLATE to default locale: No such file or directory C C.UTF-8 POSIX en_GB.utf8 ... How I fixed it Update iTerm settings...

January 10, 2026 · 1 min · Davide