debian:locale

Locale

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 (Предварительно поправить файл sudo nano /etc/default/locale)

или

  • dpkg-reconfigure locales
  • locale -a
  • 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
  • Исправление
    • 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
    • Выходим из сессии
  • Проблема
    • locale: Cannot set LC_CTYPE to default locale: No such file or directory
      locale: ?????????? ?????????? LC_ALL ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????
  • Исправление
    • dpkg-reconfigure locales
    • Выходим из сессии
  • Проблема
    • 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
    • Выходим из сессии
  • debian/locale.txt
  • Последнее изменение: 2018/10/16 13:35
  • mirocow