Hi Folks,
Fresh install of OpenMandria ROME
I have this error everytime I open console:
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_DE.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_DE.UTF-8): No such file or directory
manpath: can't set the locale; make sure $LC_* and $LANG are correct
And everytime I run the dnf command to install something or search for something:
Failed to set locale, defaulting to C.UTF-8
I tried to reinstall the en locale but it did not help. Any ideas is highly appreciated.
de locale is also instlaled.
Here is the output of localectl:
sudo localectl
System Locale: LANG=en_US.UTF-8
LC_NUMERIC=de_DE.utf8
LC_TIME=de_DE.utf8
LC_MONETARY=de_DE.utf8
LC_PAPER=de_DE.utf8
LC_NAME=de_DE.utf8
LC_ADDRESS=de_DE.utf8
LC_TELEPHONE=de_DE.utf8
LC_MEASUREMENT=de_DE.utf8
LC_IDENTIFICATION=de_DE.utf8
VC Keymap: us
X11 Layout: us
Hi mate. I already did use the search button. And I already saw that topic. And I went through it to the end. And I could not find any solution. People were talking that locale-gen should be in this operating system or not. Then the topic got closed due to: 30 days of inactivity!
I had this error pop up for me the other day. Fixed it by setting the locale and configuring all of Region & Language in System Settings to that same locale, then reboot.
I’m not sure how to fix your other errors though, I never had that happen to me. Sorry.
I’m not entirely sure but I think your $LC_* and $LANG environment variables might be conflicting with each other.
After some internet searching I found out you can use the LC_ALL environment variable to set all your LC environment variables, for example LC_NAME to your preferred locale.
To permanently set these environment variables for your current user instead of system-wide, the following lines need to be added to the end of your .bashrc file located at /home/<user>/.bashrc:
export LANG=<preferred locale, for example: en_US.UTF-8, de_DE.UTF-8>
export LC_ALL=<preferred locale, for example: en_US.UTF-8, de_DE.UTF-8>
You should probably reboot after this.
The lines can be safely removed if this doesn’t fix your issue. I hope it does but if not, womp womp. I tried