При установке пакета less в Debian вылезла вот эта проблема:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Get: 1 http://ftp.debian.org/debian/ wheezy/main less amd64 444-4 [135 kB] Fetched 135 kB in 0s (214 kB/s) 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 = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_ALL to default locale: No such file or directory debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package less. (Reading database ... 83842 files and directories currently installed.) Unpacking less (from .../archives/less_444-4_amd64.deb) ... Processing triggers for mime-support ... Setting up less (444-4) ... locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline |
Решил эту проблему вот так:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
vi /root/.bashrc export LANGUAGE=ru_RU.UTF-8 export LC_CTYPE=ru_RU.UTF-8 export LC_NUMERIC=ru_RU.UTF-8 export LC_TIME=ru_RU.UTF-8 export LC_COLLATE=ru_RU.UTF-8 export LC_MONETARY=ru_RU.UTF-8 export LC_MESSAGES=ru_RU.UTF-8 export LC_PAPER=ru_RU.UTF-8 export LC_NAME=ru_RU.UTF-8 export LC_ADDRESS=ru_RU.UTF-8 export LC_TELEPHONE=ru_RU.UTF-8 export LC_MEASUREMENT=ru_RU.UTF-8 export LC_IDENTIFICATION=ru_RU.UTF-8 export LC_ALL=ru_RU.UTF-8 |
То есть в файл /root/.bashrc вставил вышеуказанные параметры, если работа идет от другого юзера то прописать или создавать файл нужно у него в домашнем каталоге.