I've installed Debian 7 i386 on my VPS (OpenVZ). Everything works fine, except locales - any attempt to install anything shows:[...]perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:    LANGUAGE = (unset),    LC_ALL = (unset),    LANG = pl_PL.UTF-8    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 directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directory[...]What I've tried:Generating locales myself - update-locale LC_ALL=pl_PL.UTF-8 - shows: http://www.wklej.org/id/1248438/apt-get install --reinstall locales http://www.wklej.org/id/1248442/The same with dpkg-reconfigure locales + setting pl_PL.UTF-8, pl_PL.ISO-8859-2 or even en_US: http://www.wklej.org/id/1248446/export LC_ALL=pl_PL.UTF-8 (even on root):-bash: warning: setlocale: LC_ALL: cannot change locale (pl_PL.UTF-8)Here is what shows locale:root:~# localelocale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryLANG=pl_PL.UTF-8LANGUAGE=LC_CTYPE=pl_PL.UTF-8LC_NUMERIC=pl_PL.UTF-8LC_TIME=pl_PL.UTF-8LC_COLLATE=pl_PL.UTF-8LC_MONETARY=pl_PL.UTF-8LC_MESSAGES=pl_PL.UTF-8LC_PAPER=pl_PL.UTF-8LC_NAME=pl_PL.UTF-8LC_ADDRESS=pl_PL.UTF-8LC_TELEPHONE=pl_PL.UTF-8LC_MEASUREMENT=pl_PL.UTF-8LC_IDENTIFICATION=pl_PL.UTF-8LC_ALL=Nothing interesting found in /var/log. Even changing repo to official + purge and manual installation locales doesn't solve my problem, which manifests itself on each fresh installation of Debian 7.
locale not found/setting locale failed - what should I do?
debian;locale
It seems that no locale is generated. Have you selected pl_PL.UTF-8 properly in dpkg-reconfigure locales by pressing space in the corresponding line? If yes, the linepl_PL.UTF-8 UTF-8in /etc/locale.gen is not commented (= does not start with #). If you need to fix this, you need also to run locale-gen to generate the locales. Its output should be:Generating locales (this might take a while)...   pl_PL.UTF-8... doneGeneration complete.If it does not output the locales you want to generate, there seems to be something wrong with your system. One reason could be that you have localepurge installed. If there are no files in /usr/share/locale/pl/LC_MESSAGES or /usr/share/locale/pl_PL/LC_MESSAGES this is the case or your system is broken.