在 Ubuntu 11.04 服务器的新副本上,我尝试通过apt-get install postgresql. 但在安装日志的末尾我看到:
Error: could not create default cluster. Please create it manually with
pg_createcluster 8.4 main --start
Run Code Online (Sandbox Code Playgroud)
当我运行这个命令时,我看到了这条消息:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Error: The locale requested by the environment is invalid.
Run Code Online (Sandbox Code Playgroud)
并且没有启动 PostgreSQL 服务器 :(
我需要做什么才能对此感到高兴?