![如何修复 Fresh Ubuntu 最小服务器缺少语言环境?](https://linux22.com/image/1050274/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%20Fresh%20Ubuntu%20%E6%9C%80%E5%B0%8F%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%BC%BA%E5%B0%91%E8%AF%AD%E8%A8%80%E7%8E%AF%E5%A2%83%EF%BC%9F.png)
我刚刚从 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