You are not logged in.

#1 2022-05-19 08:17:45

koko271
Member
Registered: 2022-05-19
Posts: 53

[SOLVED] Cannot set to default locale

Hi,
when I update the package, I find

Bsdtar: Failed to set default locale

in the output. So I run locale and locale -a to see what's wrong.
Here is output.

$ 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=Default.UTF-8
LC_CTYPE="Default.UTF-8"
LC_NUMERIC=Default.UTF-8
LC_TIME=Default.UTF-8
LC_COLLATE="Default.UTF-8"
LC_MONETARY=Default.UTF-8
LC_MESSAGES="Default.UTF-8"
LC_PAPER="Default.UTF-8"
LC_NAME="Default.UTF-8"
LC_ADDRESS="Default.UTF-8"
LC_TELEPHONE="Default.UTF-8"
LC_MEASUREMENT=Default.UTF-8
LC_IDENTIFICATION="Default.UTF-8"
LC_ALL=
$ 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
en_GB.utf8
en_US.utf8

I am sure I have removed the comment in the locale.gen  and run the locale-gen.
How can I fix that? Thanks.
ps:There is only a line in locale.conf.

LANG=en_US.UTF-8

Last edited by koko271 (2022-05-19 11:41:19)

Offline

#2 2022-05-19 08:27:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] Cannot set to default locale

Find out where the locale is set incorrectly as "Default.UTF-8" is of course not a valid locale.

Look at the potential special cases in https://wiki.archlinux.org/title/Locale … g_language

Offline

#3 2022-05-19 08:36:33

geopardo
Member
From: Europe
Registered: 2021-03-23
Posts: 169

Re: [SOLVED] Cannot set to default locale

Maybe u need delete content on locale file.. Not locale generator file..
Unfortunately there is the pelican in the middle ..

Sorry for the inconvenience, but I have no other means ..

These problems arise with the seagulls in the middle .. The same thing happened to me too ..

# nano /etc/locale.gen
# locale-gen
# echo LANG=it_IT.UTF-8 > /etc/locale.conf

U must delete (maybe) content of locale.conf
Because the locale.gen in the encoding, writes wrong code.

Sorry.. again to all..
@ V1del You have mail, try to check ..

Last edited by geopardo (2022-05-19 08:43:31)


Some 'security people are f*cking morons' says Linus Torvalds..

Offline

#4 2022-05-19 08:40:55

koko271
Member
Registered: 2022-05-19
Posts: 53

Re: [SOLVED] Cannot set to default locale

V1del wrote:

Find out where the locale is set incorrectly as "Default.UTF-8" is of course not a valid locale.

Look at the potential special cases in https://wiki.archlinux.org/title/Locale … g_language

I delete the ~/.config/plasma-localerc from wiki suggestion. Now everything is back to okay. I have modified default locale in KDE settings for 24-hour clock. I guess that makes the error.

Last edited by koko271 (2022-05-19 08:43:58)

Offline

#5 2022-05-19 08:45:36

geopardo
Member
From: Europe
Registered: 2021-03-23
Posts: 169

Re: [SOLVED] Cannot set to default locale


Some 'security people are f*cking morons' says Linus Torvalds..

Offline

Board footer

Powered by FluxBB