You are not logged in.

#1 2021-06-19 08:30:23

indignation
Member
Registered: 2020-11-30
Posts: 9

Restore missing locale files

In the past, I used BleachBit and pacmans NoExtract option to only keep english locale files. Because this caused some issues, I decided to revert back to my config without the NoExtract option etc.
However, a lot of packages are now missing their locale files:

$ sudo pacman -Qk
warning: accountsservice: /usr/share/locale/af/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/ar/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/as/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/ast/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/az/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/be/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/bg/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/bn_IN/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/ca/LC_MESSAGES/accounts-service.mo (No such file or directory)
warning: accountsservice: /usr/share/locale/ca@valencia/LC_MESSAGES/accounts-service.mo (No such file or directory)
...
$ sudo pacman -Qk 2>&1 | grep "^warn" | wc -l
6898

How can I tell pacman to download all of them again?

Offline

#2 2021-06-19 09:40:28

willemw
Member
Registered: 2013-02-19
Posts: 113

Re: Restore missing locale files

Have you tried reinstalling accountsservice?

Offline

#3 2021-06-19 14:25:33

indignation
Member
Registered: 2020-11-30
Posts: 9

Re: Restore missing locale files

willemv wrote:

Have you tried reinstalling accountsservice?

Those are a lot of packages I'd have to reinstall:

$ sudo pacman -Qk 2>&1 | grep -o -P '(?<=warning: ).+(?=: /)' | uniq | wc -l
78

Is there any other option around this?

Offline

#4 2021-06-19 16:42:04

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Restore missing locale files

indignation wrote:
willemv wrote:

Have you tried reinstalling accountsservice?

Those are a lot of packages I'd have to reinstall:

$ sudo pacman -Qk 2>&1 | grep -o -P '(?<=warning: ).+(?=: /)' | uniq | wc -l
78

Is there any other option around this?

Are you asking if there is another option to restore the files other than reinstalling the 78 packages?
Or are you asking if there is a better command to produce the list of packages to reinstall?

#pacman -S `pacman -Qqo /usr/share/locale/`

Last edited by loqs (2021-06-19 16:59:51)

Offline

#5 2021-06-19 16:46:27

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

Re: Restore missing locale files

indignation wrote:

Is there any other option around this?

Why? It's the easiest way to fix your issue.


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

#6 2021-06-19 17:19:17

Flemur
Member
Registered: 2012-05-24
Posts: 72

Re: Restore missing locale files

indignation wrote:
willemv wrote:

Is there any other option around this?

I delete all those locale files on purpose (more than just the files bleachbit would delete) and get those warnings, but have had no actual problems...so, one answer is to do nothing.


"If you do not change direction, you may end up where you are heading." -- L.T.

Offline

Board footer

Powered by FluxBB