I normally use yay to update everything on my system as I have just a few AUR packages to keep updated and the last 2 updates where there were new packages I am getting a warning error:
(3/5) Checking which packages need to be rebuilt
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_CTYPE = (unset),
LC_NUMERIC = "en_US.UTF-8",
LC_COLLATE = (unset),
LC_TIME = "en_US.UTF-8",
LC_MESSAGES = (unset),
LC_MONETARY = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_NAME = "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.
Then just keeps looping that error for a few times which I assume is for each package it is updating (today I only had 7 packages update)
endeavouros/bash-app-translate
core/coreutils
endeavouros/eos-update
extra/hunspell
extra/libvips
extra/python-configargparse
extra/python-dbus
I did a Local-gen and then a locale command and am getting this error, which I assume is related.
$ 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=
The error stays the same even though I have done a export LC_ALL="en_US.UTF-8"
What is this no such file or directory and how do I fix? I thought the locale-gen and the export command would resolve it. There isn’t anything in my locale.conf file commented:
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
Rerunning yay or a pacman -Syu doesn’t result in any rebuilds/errors so I am not sure if this is causing a system issue as well down the road.