如何设置地区?


21

全新安装Ubuntu Server之后,运行“ perl”时出现以下错误。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_CA.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

我应该在哪里设置区域设置,系统范围和特定于用户的位置?如果有命令行实用程序可以执行此操作,我宁愿使用它,也不愿手动编辑配置文件。


Answers:


38

在终端中输入以下命令以消除该错误,

sudo apt-get install language-pack-en-base

sudo dpkg-reconfigure locales

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.