You are not logged in.
Pages: 1
I didn't correctly install the locale while installing Arch. Now I'm facing constant issues whenever I open the terminal.
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
I have uncommented the following entry in /etc/locale.gen:
LANG=en_US.UTF-8 UTF-8Output of the
localecommand:
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_ALL to default locale: No such file or directory
LANG=en_IN.US-ASCII
LC_CTYPE="en_US.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=en_US.UTF-8
In need of some urgent help. I tried DuckDuckGo for solutions, but I found no success.
Last edited by saurabhlambe (2017-10-21 17:27:28)
Offline
Offline
What is the output of
locale -aOffline
I did run
locale-genSharing outputs.
[saurabh@saurabh ~]$ locale-gen
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Generating locales...
LANG=en_US.UTF-8...cannot open locale definition file `LANG=en_US': No such file or directoryOutput for locale -a:
saurabh@saurabh ~]$ locale -a
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
POSIXOffline
FYI:
I run this command to remove the locale after some googling and tried to re-install the locale.
sudo rm /usr/share/i18n/locales/en_USOffline
The entry in locale.gen was NOT "LANG=en_US.UTF-8 UTF-8". You're confusing locale.conf and locale.gen. You were only supposed to uncomment things in locale.gen, not add.
Offline
Why do you have the line
LANG=en_US.UTF-8 UTF-8in /etc/locale.gen
What is the contents of /etc/locale.conf.
What guide are you following?
Edit:
added in /etc/locale.gen to clarify
Last edited by loqs (2017-10-21 16:43:58)
Offline
I run this command to remove the locale after some googling and tried to re-install the locale.
sudo rm /usr/share/i18n/locales/en_US
Reinstall glibc to fix the damage caused by deleteing /usr/share/i18n/locales/en_US
Offline
Thanks a lot @loqs.
Edited the /etc/locale.gen file and deleted "LANG" from the entry. And run "locale-gen". Seems to be working fine now.
Why do you have the line
LANG=en_US.UTF-8 UTF-8in /etc/locale.gen
What is the contents of /etc/locale.conf.
What guide are you following?
Edit:
added in /etc/locale.gen to clarify
Last edited by saurabhlambe (2017-10-21 17:05:34)
Offline
I suspect there is still an issue as the output of locale produced
LANG=en_IN.US-ASCII
....
LC_ALL=en_US.UTF-8Is that LANG setting valid? Why is it being overruled by LC_ALL?
Last edited by loqs (2017-10-21 17:07:58)
Offline
I'm sorry I didn't get you.
I'll share an output though.
[saurabh@saurabh firefox]$ locale
LANG=en_IN.US-ASCII
LC_CTYPE="en_US.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=en_US.UTF-8Offline
What is the contents of /etc/locale.conf?
Offline
"/etc/locale.conf" doesn't exist ![]()
Offline
Installation_guide#Locale
Also find out where LANG=en_IN.US-ASCII and LC_ALL=en_US.UTF-8 is being set.
Offline
You almost certainly want LC_COLLATE to be 'C' and not language/region specific.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pages: 1