It is a very common error faced on Arch Linx , here are easy steps to fix it
Check Available Locales
locale -a
Generate the Locale
Edit
/etc/locale.gen
:sudo geany /etc/locale.gen
Uncomment the line:
Save the file and run command
sudo locale-gen
3. Set System-Wide Locale
Edit
/etc/locale.conf
:sudo geany /etc/locale.conf
Add the following (adjust if needed):
LANG=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8
Save the file.
4. Check User-Specific Configuration
Ensure no conflicting locale settings exist in your shell config files (e.g., ~/.bashrc
, ~/.bash_profile
, ~/.profile
). Remove or comment out lines like:
export LANG="en_US.UTF-8"
5. Apply Changes
Log out and log back in, or reboot:
No comments:
Post a Comment