当我通过 PuTTY 登录我的服务器 (Debian 7) 时,我收到一条消息说:
-bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8).
Run Code Online (Sandbox Code Playgroud)
然后,当我尝试运行几乎所有命令时,我得到以下信息:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB:en",
LC_ALL = "en_GB.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Run Code Online (Sandbox Code Playgroud)
我已经在网上寻找帮助。我的 /etc/environment 文件中包含 'LC_ALL="en_GB.UTF-8"'。
打字;
locale -a
Run Code Online (Sandbox Code Playgroud)
打印以下内容:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: …
Run Code Online (Sandbox Code Playgroud)