Created
December 29, 2025 21:11
-
-
Save phoenixthrush/e9a17717281138faf4a9526613ccdb68 to your computer and use it in GitHub Desktop.
locale: Cannot set LC_CTYPE to default locale: No such file or directory #locale #linux #terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ locale | |
| locale: Cannot set LC_CTYPE to default locale: No such file or directory | |
| locale: Cannot set LC_ALL to default locale: No such file or directory | |
| LANG=en_US.UTF-8 | |
| LANGUAGE= | |
| LC_CTYPE=UTF-8 | |
| LC_NUMERIC="en_US.UTF-8" | |
| LC_TIME="en_US.UTF-8" | |
| LC_COLLATE="en_US.UTF-8" | |
| LC_MONETARY="en_US.UTF-8" | |
| LC_MESSAGES="en_US.UTF-8" | |
| LC_PAPER="en_US.UTF-8" | |
| LC_NAME="en_US.UTF-8" | |
| LC_ADDRESS="en_US.UTF-8" | |
| LC_TELEPHONE="en_US.UTF-8" | |
| LC_MEASUREMENT="en_US.UTF-8" | |
| LC_IDENTIFICATION="en_US.UTF-8" | |
| LC_ALL= | |
| https://askubuntu.com/questions/599808/cannot-set-lc-ctype-to-default-locale-no-such-file-or-directory | |
| This same problem (LC_CTYPE=UTF-8, which is wrong) can happen when you login over ssh from a Mac to a linux box, and your terminal automatically sets environment variables. There's a checkbox for that. Uncheck it, and you're good to go. | |
| In iTerm it's in the profile -> Terminal tab. | |
| In Terminal, it's in the Terminal -> Preferences -> Profiles -> Advanced tab. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment