You are not logged in.

#1 2022-05-06 16:40:59

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Broken locales, errors regarding locales

Hello,
I was getting good chunk of errors each time I updated my system:
https://pastebin.com/JPTe2RUv

So I tried to regenerate locales and switching from en_GB to en_US following the wiki:
https://wiki.archlinux.org/title/Locale

I edited /etc/locale.gen
ran locale-gen
edited /etc/locale.conf and set language to en_US
After running this, my locales ended up being completely broken. Some applications which require locales set stopped working (they worked before).

My /etc/locale.gen:
https://pastebin.com/QtakUEMg
(only en_US is uncommented)

My /etc/locale.conf contains only one line:

LANG=en_US.UTF-8

Output of locale -a:

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_COLLATE to default locale: No such file or directory
C
POSIX

Any help would be appreciated as some key programs stopped working due to broken locales, so I am pretty much unable to continue with work.

Thank you!


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#2 2022-05-06 16:46:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Broken locales, errors regarding locales

Post the contents of your pacman.conf.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-05-06 17:16:29

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Re: Broken locales, errors regarding locales


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2022-05-06 17:38:12

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Re: Broken locales, errors regarding locales

What is more worrying though, most of my programs show errors regarding locales and when I run "localectl list-locales", there is no output or better said, the output is absolutely blank

Last edited by othersamo_ (2022-05-06 17:38:36)


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#5 2022-05-06 18:08:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Broken locales, errors regarding locales

What happens, exactly, when you run locale-gen?

Offline

#6 2022-05-06 19:43:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,012

Offline

#7 2022-05-06 19:50:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Broken locales, errors regarding locales

That's why I asked too see their pacman.conf. They don't have anything defined by NoExtract.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2022-05-06 19:55:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,012

Re: Broken locales, errors regarding locales

… but most likely have those locales frequently removed by bleachbit or similar … "tools" (1st link Tip hints at that) - the 2nd link is to show what to do instead.
If it was in NoExtract, the error would not be there itfp.

Offline

#9 2022-05-07 11:42:45

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Re: Broken locales, errors regarding locales

At the end I managed to fix it. Actually I checked in bleachbit which considered the locales as "broken system files".
What I did is just removed them, re-installed glibc and they seemed to be newly added.
Programs started to work again (those which depend on locales). I will see whether those warnings are still present on next update (check your proposals), so that's why I am not marking as solved yet...


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#10 2022-05-07 11:48:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,012

Re: Broken locales, errors regarding locales

I will see whether those warnings are still present on next update

If you keep using bleachshit…

Offline

#11 2022-05-07 15:51:32

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Re: Broken locales, errors regarding locales

seth wrote:

I will see whether those warnings are still present on next update

If you keep using bleachshit…

How can that program affect system running?


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#12 2022-05-07 15:57:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Broken locales, errors regarding locales

It deletes files tracked by pacman. It won't break your locale, that was a different issue, but it will cause all of those warnings from pacman.

Offline

#13 2022-05-07 16:52:26

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 163

Re: Broken locales, errors regarding locales

Ight, I will refrain from running it and stick to manual cleanup


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

Board footer

Powered by FluxBB