如何修复 Fresh Ubuntu 最小服务器缺少语言环境?

如何修复 Fresh Ubuntu 最小服务器缺少语言环境?

我刚刚从 Hetzner.de 订购了 vServer VX11 上的普通 Ubuntu 14.04.2 LTS min,之后apt-get update出现了这个错误

Fetched 65.6 MB in 3s (20.1 MB/s)      
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:en",
    LC_ALL = (unset),
    LC_TIME = "et_EE.UTF-8",
    LC_MONETARY = "et_EE.UTF-8",
    LC_ADDRESS = "et_EE.UTF-8",
    LC_TELEPHONE = "et_EE.UTF-8",
    LC_NAME = "et_EE.UTF-8",
    LC_MEASUREMENT = "et_EE.UTF-8",
    LC_IDENTIFICATION = "et_EE.UTF-8",
    LC_NUMERIC = "et_EE.UTF-8",
    LC_PAPER = "et_EE.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_ALL to default locale: No such file or directory
Preconfiguring packages ...

许多命令都会发生此区域设置错误。如何消除此错误?

答案1

打开终端并执行以下命令:

sudo locale-gen et_EE et_EE.UTF-8 en_US en_US.UTF-8
sudo dpkg-reconfigure locales

相关内容