当我启动pi时,它会引发以下警告:
-bash:警告:setlocale:LC_ALL:无法更改语言环境(en_US.UTF-8)
-bash:警告:setlocale:LC_ALL:无法更改语言环境(en_US.UTF-8)
-> bash:警告:setlocale:LC_ALL:无法更改区域设置(en_US.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=en_US
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
我将/ etc / default / locale的内容更改为以下内容
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8
我尝试使用重新配置语言环境
sudo dpkg-重新配置语言环境
但是每次菜单打开时,都不会进行选择。我必须选择
zh_CN.UTF-8 UTF-8
每次选择此选项都会引发错误
生成语言环境(这可能需要一段时间)...
生成完成。
*** update-locale:错误:无效的区域设置:LANG = en_GB.UTF-8 LANGUAGE =“ en_US.UTF-8” LC_ALL =“ en_US.UTF-8”
如何删除这些警告?
raspi-config
设置过国际选项?