Ошибка «perl: warning: Setting locale failed.» в Debian Linux — решение
После какого то обновления на всех Debian серверах слетели настройки локализации и стала вылазить вот такая ошибка :
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). /usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct manconv: can't set the locale; make sure $LC_* and $LANG are correct
на работу серверов и сервисов она никак не повлияла но глаза мозолила
решение — переконфигурировать пакет locales
dpkg-reconfigure locales
после запуска команды появиться окно с выбором необходимых локализаций — выбираем необходимые (как минимум en_US.UTF-8 UTF-8 и ru_RU.UTF-8 UTF-8)
далее нам предложат выбрать Локаль по умолчанию устанавливаем то что считаем нужным я устанавливаю ru_RU.UTF-8 UTF-8 чтоб системные сообщения выводились на русском
Categories: Без рубрики
dpkg-reconfigure locales, после выбрал en_US.UTF-8 UTF-8 и ru_RU.UTF-8 UTF-8 локально ru_RU.UTF-8 UTF-8
но выдает не понятную фигню, перезагрузка не помогает\\\ debian wheezy то бишь testing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = «ru_UA.utf8»,
LC_NUMERIC = «ru_UA.utf8»,
LC_MEASUREMENT = «ru_UA.utf8»,
LC_TIME = «ru_UA.utf8»,
LANG = «ru_RU.UTF-8»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).
locale: �������������������� �������������������� LC_ALL �� ������������ ���� �����������������: ������ ������������ ���������� ������ ����������������
/usr/bin/locale: �������������������� �������������������� LC_ALL �� ������������ ���� �����������������: ������ ������������ ���������� ������ ����������������
Generating locales (this might take a while)…
en_US.UTF-8… done
ru_RU.UTF-8… done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = «ru_UA.utf8»,
LC_MONETARY = «ru_UA.utf8»,
LC_MEASUREMENT = «ru_UA.utf8»,
LC_NUMERIC = «ru_UA.utf8»,
LANG = «C»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = «ru_UA.utf8»,
LC_MONETARY = «ru_UA.utf8»,
LC_MEASUREMENT = «ru_UA.utf8»,
LC_NUMERIC = «ru_UA.utf8»,
LANG = «C»
are supported and installed on your system.
perl: warning: Falling back to the standard locale («C»).