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 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
[...]
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
+ settingpl_PL.UTF-8
,pl_PL.ISO-8859-2
or evenen_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:~# 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
LANG=pl_PL.UTF-8
LANGUAGE=
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_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.
-plow
is the default, so can be omitted. You only need to calldpkg-reconfigure
, which will call locale-gen after you tick the entry you want. – Stéphane Chazelas Jan 24 '14 at 14:25locale-gen
. – jofel Jan 24 '14 at 15:16/etc/locale.gen
has only uncommenteden_GB
. I noticed this mistake in this thread here http://unix.stackexchange.com/q/287716/16920 Please, add it to the throubleshoot strategy too. – Léo Léopold Hertz 준영 Jun 22 '16 at 20:21