Locale Issues

After an update yesterday and rebooting my PC, the i3status bar stopped working, this is the message that comes up:

Could not set locale. Please make sure all your LC_* / LANG settings are correct.

Upon updating the system today, I also caught this

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "pt_BR.UTF-8",
	LC_NAME = "pt_BR.UTF-8",
	LC_MONETARY = "pt_BR.UTF-8",
	LC_PAPER = "pt_BR.UTF-8",
	LC_IDENTIFICATION = "pt_BR.UTF-8",
	LC_TELEPHONE = "pt_BR.UTF-8",
	LC_MEASUREMENT = "pt_BR.UTF-8",
	LC_TIME = "pt_BR.UTF-8",
	LC_NUMERIC = "pt_BR.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Here is the result of the command locales:

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_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_ALL=

So far, looking it up, I saw that the common solution was to uncomment the languages I use (so pt_BR.UTF-8 and en_US.UTF-8) from /etc/locales.gen and then run sudo locale-gen, I’ve done so already, but the issues persists. This is what happens when I run it.

Generating locales...
  es_US.UTF-8... done
  pt_BR.UTF-8... done
Generation complete.

And this is the output of cat /etc/locale.conf

LANG=en_US.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8

I have also logged off and logged in afterwards, the issue remains. I installed the xfce4 version of EndeavourOS and eventually installed i3wm manually, I’m not and have never used KDE, which seems to be a common causer of this kind of issue.

btm looks done with it
image

These should probably be the same.

1 Like

Ouch, I’m going to get new glasses… Thank you!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.