leap node init: configure user's locale
otherwise leap node init gives nasty locale warnings:
= completed initialization of nodes web1 Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: dictionaries-common psmisc python2.6 python2.6-minimal task-english tasksel tasksel-data 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 4608 kB of archives. After this operation, 3072 B of additional disk space will be used. Get:1 http://http.debian.net/debian/ wheezy/main python2.6 amd64 2.6.8-1.1 [2509 kB] Get:2 http://http.debian.net/debian/ wheezy/main tasksel-data all 3.14+nmu1 [20.9 kB] Get:3 http://http.debian.net/debian/ wheezy/main tasksel all 3.14+nmu1 [94.2 kB] Get:4 http://http.debian.net/debian/ wheezy/main python2.6-minimal amd64 2.6.8-1.1 [1547 kB] Get:5 http://http.debian.net/debian/ wheezy/main dictionaries-common all 1.12.11 [302 kB] Get:6 http://http.debian.net/debian/ wheezy/main psmisc amd64 22.19-1+deb7u1 [135 kB] Get:7 http://http.debian.net/debian/ wheezy/main task-english all 3.14+nmu1 [792 B] Can't set locale make sure $LC_* and $LANG are correct! Reading changelogs... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "de_DE.UTF-8", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 4608 kB in 14s (325 kB/s) (Reading database ... 45423 files and directories currently installed.) Preparing to replace tasksel-data 3.14 (using .../tasksel-data_3.14+nmu1_all.deb) ... Unpacking replacement tasksel-data ... Preparing to replace tasksel 3.14 (using .../tasksel_3.14+nmu1_all.deb) ... Unpacking replacement tasksel ... Preparing to replace python2.6 2.6.8-0.2 (using .../python2.6_2.6.8-1.1_amd64.deb) ... Unpacking replacement python2.6 ... Preparing to replace python2.6-minimal 2.6.8-0.2 (using .../python2.6-minimal_2.6.8-1.1_amd64.deb) ... Unpacking replacement python2.6-minimal ... Preparing to replace dictionaries-common 1.12.10 (using .../dictionaries-common_1.12.11_all.deb) ... Leaving 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common' Unpacking replacement dictionaries-common ... Preparing to replace psmisc 22.19-1 (using .../psmisc_22.19-1+deb7u1_amd64.deb) ... Unpacking replacement psmisc ... Preparing to replace task-english 3.14 (using .../task-english_3.14+nmu1_all.deb) ... Unpacking replacement task-english ... Processing triggers for man-db ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype ...
(from redmine: created on 2013-02-03, closed on 2013-03-14, relates #1640 (closed))