我已经在VPS(OpenVZ)上安装了Debian 7 i386。一切正常,除了语言环境-任何尝试安装的东西都显示:
[...]
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
[...]
我尝试过的
- 我自己生成语言环境
update-locale LC_ALL="pl_PL.UTF-8"
--显示:http : //www.wklej.org/id/1248438/ apt-get install --reinstall locales
http://www.wklej.org/id/1248442/- 与
dpkg-reconfigure locales
+设置相同pl_PL.UTF-8
,pl_PL.ISO-8859-2
甚至en_US
:http : //www.wklej.org/id/1248446/ export LC_ALL=pl_PL.UTF-8
(即使在根目录上):-bash: warning: setlocale: LC_ALL: cannot change locale (pl_PL.UTF-8)
这是显示语言环境的内容:
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=
在/ var / log中找不到有趣的东西。即使将回购更改为官方+清除和手动安装区域设置也无法解决我的问题,这在Debian 7的每个全新安装中都会体现出来。