更新和安装软件时出现此错误:perl:警告:设置区域设置失败

THp*_*ubs 5 server 11.04

我刚刚在我的 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").
Run Code Online (Sandbox Code Playgroud)

它主要出现在我尝试安装或升级软件时!

我怎样才能解决这个问题?

THp*_*ubs 3

刚刚得到MT的答复:

echo "en_US.UTF-8 UTF-8" > /var/lib/locales/supported.d/local dpkg-重新配置语言环境

它工作完美!