NextCloud fix Setting locale to en_US.UTF-8 failed

Table of Contents

NextCloud fix Setting locale to en_US.UTF-8 failed

Setting locale to en_US.UTF-8 failed

Setting locale to en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8 failed.

Please install one of these locales on your system and restart your web server.

image

Fix Setting locale to en_US.UTF-8 failed

Your warning suggests that the locales you are requesting have not actually been compiled. So, you should use:

sudo dpkg-reconfigure locales

to select the locales to compile.

Alternatively, just edit the file:

/etc/locale.gen

and uncomment the locales you want, then run:

sudo locale-gen

to generate them.


  1. https://download.nextcloud.com/server/releases/?C=S;O=A
  2. https://unix.stackexchange.com/questions/729165/bash-warning-setlocale-lc-all-cannot-change-locale-misleading-what-does
  3. https://stackoverflow.com/questions/55077450/linode-lish-bash-warning-setlocale-lc-all-cannot-change-locale-en-us-utf-8

Leave a Reply

Your email address will not be published. Required fields are marked *