每次我执行诸如启动或停止服务之类的操作时都会收到此消息。
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LANG = "en_US.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
(Reading database …Run Code Online (Sandbox Code Playgroud) 我有语言环境问题。和其他程序中
的整理顺序nautilus已更改。
当我启动 GUI 应用程序时,终端中出现区域设置错误。
Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Run Code Online (Sandbox Code Playgroud)
该locale命令产生错误消息
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_AU
LANGUAGE=en_AU:en
LC_CTYPE="en_AU"
LC_NUMERIC="en_AU"
LC_TIME="en_AU"
LC_COLLATE=en_AU.UTF-8
LC_MONETARY="en_AU"
LC_MESSAGES=en_AU.UTF-8
LC_PAPER="en_AU"
LC_NAME="en_AU"
LC_ADDRESS="en_AU"
LC_TELEPHONE="en_AU"
LC_MEASUREMENT="en_AU"
LC_IDENTIFICATION="en_AU"
LC_ALL=
Run Code Online (Sandbox Code Playgroud)
正如askubuntu question 中所建议的,我已经运行了以下命令,但没有任何变化。
sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales
Run Code Online (Sandbox Code Playgroud)
我也尝试了askubuntu 问题中的建议......也没有改变。
apt-get install …Run Code Online (Sandbox Code Playgroud) 我需要比较两个字符串并忽略内容的大小写。如果 [ $first != $second ]。我可以添加到此命令的任何内容,以便比较忽略大小写。