S
S
Sergey Burduzha2021-09-07 11:37:16
linux
Sergey Burduzha, 2021-09-07 11:37:16

How to fix localization problem in ubuntu?

Good afternoon.
After installing the system, there was a problem with the locale.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "ru_MD.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
ack: carrello: No such file or directory


manpath: can't set the locale; make sure $LC_* and $LANG are correct


Only I don't have such locale ru_MD.UTF-8

-> % 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
C.UTF-8
POSIX
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8


I am using zsh.

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hint000, 2021-09-07
@serii81

such locale "ru_MD.UTF-8" does not exist at all, and I don't need it
And what is needed?
If you need ru_RU.utf8 , then try first
sudo apt-get install language-pack-ru
and then change the locale to ru_RU.utf8
If you need en_US.utf8 , then you have it, you can immediately select it.
A few years ago I had some kind of error with the locale (and I always set the locale to either en_US.UTF-8 or even C ). After googling and experimenting, I decided through the export LC_ALL=en_US.UTF-8Pro I forgot the error itself a long time ago, but this line has been living in my ~/.bashrc since then, it doesn’t ask to eat.

A
Alexey Dmitriev, 2021-09-07
@SignFinder

Go to google, type in "how to add locale Ubuntu", read, do.

P
pfg21, 2021-09-07
@pfg21

in the list of supported locales
/usr/share/i18n/SUPPORTED there
is no
ru_MD.UTF-8
, that is, the desired one is not supported
option A: use something else.
option B: hack (or make) a locale file for the one you are looking for.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question