How to fix 'warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)' on arch
1
vote
0
answers
4470
views
I am on arch for Wsl and was having trouble opening exe applications(such as firefox) from wsl2 terminal. By running
locale -a
I found that I didn't have en_US.UTF-8
or any other locale and only had C. I tried to generate locale by uncommenting from etc/locale.gen
and doing locale-gen
but got the error warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
. I tried installing the language package with yum -y install glibc-locale-source glibc-langpack-en
but since I didn't have yum in my system I had to install it first. However while I was installing yum I came across the same error warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
. I am not sure how to fix this issue.
(I am not sure whether I can ask wsl related questions on this community so if this query is not permitted please let me know)
Asked by Init
(11 rep)
Dec 21, 2022, 02:14 AM