Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Locale

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
fch
Posts: 212
Joined: 2021-09-06 15:44
Has thanked: 21 times
Been thanked: 5 times

Locale

#1 Post by fch »

I am a bit lost with a problem in my locale, how to solve this?

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_ADDRESS = "it_IT.UTF-8",
LC_NAME = "it_IT.UTF-8",
LC_MONETARY = "it_IT.UTF-8",
LC_PAPER = "it_IT.UTF-8",
LC_IDENTIFICATION = "it_IT.UTF-8",
LC_TELEPHONE = "it_IT.UTF-8",
LC_MEASUREMENT = "it_IT.UTF-8",
LC_TIME = "it_IT.UTF-8",
LC_NUMERIC = "it_IT.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

my /etc/default/locale show that bellow:

# File generated by update-locale
LANG=en_US.UTF-8

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Locale

#2 Post by Aki »

Have you seen here [1] ?

[1] https://wiki.debian.org/Locale#Standard
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

fch
Posts: 212
Joined: 2021-09-06 15:44
Has thanked: 21 times
Been thanked: 5 times

Re: Locale

#3 Post by fch »

Aki wrote: 2021-09-19 19:37 Have you seen here [1] ?

[1] https://wiki.debian.org/Locale#Standard
Yes, but I don't know what is wrong, and what I need to change.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Locale

#4 Post by Aki »

fch wrote: 2021-09-20 08:29
Aki wrote: 2021-09-19 19:37 Have you seen here [1] ?

[1] https://wiki.debian.org/Locale#Standard
Yes, but I don't know what is wrong, and what I need to change.
Hello

You can follow these instructions (typing commands as root user):
Get root and type

Code: Select all

dpkg-reconfigure locales
and select the locale(s) you want to generate. At the end, you'll be asked which one should be the default.
Then, you can restart the session and the locale should be reconfigured according to the configuration given by the previous command.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

fch
Posts: 212
Joined: 2021-09-06 15:44
Has thanked: 21 times
Been thanked: 5 times

Re: Locale

#5 Post by fch »

Aki wrote: 2021-09-20 08:46
fch wrote: 2021-09-20 08:29
Aki wrote: 2021-09-19 19:37 Have you seen here [1] ?

[1] https://wiki.debian.org/Locale#Standard
Yes, but I don't know what is wrong, and what I need to change.
Hello

You can follow these instructions (typing commands as root user):
Get root and type

Code: Select all

dpkg-reconfigure locales
and select the locale(s) you want to generate. At the end, you'll be asked which one should be the default.
Then, you can restart the session and the locale should be reconfigured according to the configuration given by the previous command.
I did that but after I check the locale and get these errors:

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

fch
Posts: 212
Joined: 2021-09-06 15:44
Has thanked: 21 times
Been thanked: 5 times

Re: Locale

#6 Post by fch »

I think I fixed it now, no erros anymore at least, I need to learn more about it

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Locale

#7 Post by Aki »

Hello,

What is the locale you have choosen to configure ?

Did the error appear in a local or a remote (e.g. ssh) terminal ?

Edit: please use “code” tags to delimit code or logs in messages.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

fch
Posts: 212
Joined: 2021-09-06 15:44
Has thanked: 21 times
Been thanked: 5 times

Re: Locale

#8 Post by fch »

[quote=Aki post_id=743057 time=1632129463 user_id=188534]
Hello,

What is the locale you have choosen to configure ?

I was choosing the wrong locales apparently, there was en_GB and also en_US

Did the error appear in a local or a remote (e.g. ssh) terminal ?
remote ssh

Edit: please use “code” tags to delimit code or logs in messages.

Will do that next time

Post Reply