Locale

Locale

Установка локализации

dpkg-reconfigure locales

Вывод списка установленных локалей

locale -a

Проверка

locale

Ошибки

1

Проблема

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

Исправление

dpkg-reconfigure locales

localedef ru_RU.UTF-8 -i ru_RU -f UTF-8

localedef -i ru_RU -c -f UTF-8 ru_RU.UTF-8

update-locale LANG=ru_RU.UTF-8 LC_MESSAGES=POSIX

Выходим из сессии

2

Проблема

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: ?????????? ?????????? LC_ALL ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????

Исправление

dpkg-reconfigure locales

Выходим из сессии

3

Проблема

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "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").

Исправление

sudo nano /etc/default/locale

LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LC_TYPE=en_US.UTF-8

locale-gen en_US.UTF-8

Выходим из сессии