linux语言环境未设置

linux语言环境未设置

问题描述:

我有一台带有ubuntu发行版的基于ARM的机器,它在运行各种命令时常常为我提供帮助:

I have a ARM based machine with ubuntu distro on it and it often feeds me with this while running various commands:

 Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "pl_PL.UTF-8"

这是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
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=

我应该怎么做才能阻止它突然弹出并正确配置½ęśćźńół(我的重要角色)?

What should I do to stop it from popping now and then and configure it properly for the ąęśćźńół [important characters of mine]?

好的,我找到了

在一些非32位x86体系结构的ubuntu发行版中,它配置错误. 我需要

In some ubuntu distros on non 32bit x86 architectures it is misconfigured. I needed to

sudo apt-get install language-pack-pl

sudo apt-get install --reinstall language-pack-pl(如果已安装) pl是语言代码.更改为您的.

or sudo apt-get install --reinstall language-pack-pl if already installed pl is the language code. Change to Yours.

然后

cd /usr/lib/locale
sudo ln -s pl_PL.utf8 pl_PL

它是固定的