Problem with 'Setting locale failed'

So when I do a normal update with Paru, everything works overall, but I keep getting this warning:

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

How do I fix this? I have read what the locale controls, fonts and other things and everything seems to be working, but I’m sure it should’nt be doing this.

Thanks in advance for any advice.

What is the output of the command locale

1 Like

I get this:

[mark@mark-optiplex9020 ~]$ locale
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=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=

How about the output of sudo locale-gen

1 Like

Maybe it worked?

[mark@mark-optiplex9020 ~]$ sudo locale-gen
[sudo] password for mark:
Sorry, try again.
[sudo] password for mark:
Generating locales…
en_US.UTF-8… done
Generation complete.
[mark@mark-optiplex9020 ~]$ locale
LANG=en_US.UTF-8
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=

Does paru work without warnings now?

1 Like

Yep, thanks that cleared it right up, after paru, i’m not getting that warning now. I wonder what caused that?

1 Like

I don’t know. glibc updated recently but I wouldn’t think it would cause your default locale to break.

1 Like

It seems they also changed the error message (for the same issue=some locale value called “Default”). They are watching us!! :rofl:
For some programs (perl related?), when one of the individual LC_ vars had no value, they assumed Default, and looking for an actual Default lovale, which does not exist in Arch. :wink:

1 Like

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