我刚刚在我的 MT 服务器上安装了 Ubuntu 11.04,但一直收到此错误:
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
它主要在我尝试安装或升级软件时出现!
我怎样才能解决这个问题?
答案1
跑步:
sudo dpkg-reconfigure locales
如果不起作用,请尝试将以下行添加到/etc/环境然后重新启动。
LC_ALL="en_GB.utf8"
如果你在美国,
LC_ALL="en_US.UTF-8"
有关详细信息,请参阅:
答案2
刚刚得到 MT 的答复:
回显“ en_US.UTF-8 UTF-8”> /var/lib/locales/supported.d/local dpkg-reconfigure 区域设置
它运行完美!