我有一台基于ARM的机器,上面有ubuntu发行版,它经常在运行各种命令时向我提供这个:
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=
我应该怎么做才能阻止它偶尔弹出并为ąęśćźńół[我的重要角色]正确配置?
答案 0 :(得分:6)
好的,我找到了
在非32位x86架构的某些ubuntu发行版中,它配置错误。 我需要
sudo apt-get install language-pack-pl
或
sudo apt-get install --reinstall language-pack-pl
已安装
pl是语言代码。改变你的。
然后
cd /usr/lib/locale
sudo ln -s pl_PL.utf8 pl_PL
并且已修复
答案 1 :(得分:1)
当然,如果可以的话,安装所需的语言环境(sudo dpkg-reconfigure locales
)是最佳选择。
但我有时会禁用它们,如下所示:
unset $(locale|cut -d= -f1)
答案 2 :(得分:0)
尝试:
sudo dpkg-reconfigure locales
选择您想要使用的区域设置。 接下来选择默认并完成。