linux语言环境未设置 [英] linux locale unset
本文介绍了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
它是固定的
这篇关于linux语言环境未设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文