# Locale issue with missing file

**URL:** <https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710>\
**Category:** Pacman & AUR helpers\
**Created:** [September 28, 2026, 9:15pm UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710 "2026-09-28T21:15:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greymane](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/greymane/32/109682_2.png) [@Greymane](https://forum.endeavouros.com/u/Greymane)\
**Post date:** [September 28, 2026, 9:15pm UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/1 "2026-09-28T21:15:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Beiruty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beiruty/32/79996_2.png) [@Beiruty](https://forum.endeavouros.com/u/Beiruty)\
**Post date:** [September 28, 2026, 11:28pm UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/2 "2026-09-28T23:28:15Z")

</div>

Grok AI solved it for me.  
note, my locale is -8 (Central Time)  
Fix:

```auto
sudo sed -i 's/^#\s*en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
grep -n 'en_US.UTF-8' /etc/locale.gen
sudo locale-gen

```

Optional cleanup

```auto
### /etc/locale.conf does not need every LC_* line. This is enough:
textLANG=en_US.UTF-8
sudo install -m 644 /dev/stdin /etc/locale.conf <<'EOF'
LANG=en_US.UTF-8
EOF

```

---

<div class="post-metadata">

**Author:** ![Greymane](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/greymane/32/109682_2.png) [@Greymane](https://forum.endeavouros.com/u/Greymane)\
**Post date:** [September 29, 2026, 12:03am UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/3 "2026-09-29T00:03:05Z")

</div>

So what exactly is this doing? I want to understand what is wrong before just running a command.

---

<div class="post-metadata">

**Author:** ![Beiruty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beiruty/32/79996_2.png) [@Beiruty](https://forum.endeavouros.com/u/Beiruty)\
**Post date:** [September 29, 2026, 12:08am UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/4 "2026-09-29T00:08:40Z")

</div>

en\_US.UTF-8 is missing from /etc/locale.gen.  
First line will add it  
Second line will verify the addition  
Finally, regenerate locale

---

<div class="post-metadata">

**Author:** ![Greymane](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/greymane/32/109682_2.png) [@Greymane](https://forum.endeavouros.com/u/Greymane)\
**Post date:** [September 29, 2026, 12:17am UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/5 "2026-09-29T00:17:36Z")

</div>

Thank you. I tried researching but I missed that I needed to uncomment it out of the .gen file. Thought I was just working with the .conf file for locale.

When you replied I had just parsed out the sed command (not one I use so was fighting through the wildcards).

Sorry to question you…just want to actually understand what was going on and what was missing as I really wanted to fully understand.

Thanks again.

---

<div class="post-metadata">

**Author:** ![Beiruty](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beiruty/32/79996_2.png) [@Beiruty](https://forum.endeavouros.com/u/Beiruty)\
**Post date:** [September 29, 2026, 12:31am UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/6 "2026-09-29T00:31:34Z")

</div>

No worries, you are welcome.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [October 1, 2026, 12:31am UTC](https://forum.endeavouros.com/t/locale-issue-with-missing-file/81710/7 "2026-10-01T00:31:45Z")

</div>

Closed on October 1, 2026, 12:31am UTC

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