由于编码不匹配,无法进行露天安装

Cannot proceed alfresco installation because of encoding mismatch

我是 Alfresco 的新手,我正在尝试按照安装指南在我的 debian 服务器(通过 ssh 访问)中安装 alfresco。但是,安装停止并向我显示此错误:

Error: There has been an error.
initdb.bin: encoding mismatch
The encoding you selected (UTF8) and the encoding that the selected 
locale uses (LATIN1) do not match. This would lead to misbehavior in 
various character string processing functions. Rerun initdb.bin and either 
do not specify an encoding explicitly, or choose a matching combination.

我尝试更新服务器的区域设置,但问题仍然存在。我该如何解决?

我已经通过以下步骤成功安装了它:

  1. 在本地机器的/etc/ssh/ssh_config变量中注释掉Send_ENV,在服务器的/etc/ssh/sshd_config变量中注释掉Accept_ENV。
  2. 编辑 /etc/locale.gen 取消注释 en_US.UTF-8.
  3. 运行 locale-gen
  4. 编辑了 /etc/locale.conf 并添加了 LANG=en_US.UTF-8.
  5. 成功安装 alfresco。