Application installation fails on systems with Turkish locale (tr_TR.UTF-8) – variables not initialized (INSTALL_DIR, ADMIN)

What app is this about, and its version: all
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Old laptop or computer

Describe your issue

When installing applications on YunoHost systems configured with a Turkish locale (tr_TR.UTF-8), application installations consistently fail during configuration file templating.
This issue affects multiple applications (e.g. Roundcube, SOGo, others) and is not app‑specific.
When the system locale is set to tr_TR.UTF-8, YunoHost helper scripts fail to correctly initialize variables used in configuration templates (such as INSTALL_DIR, ADMIN).
As a result, application installation aborts even when all configuration options are left at their defaults.
Changing the system locale to en_US.UTF-8 resolves the issue immediately, and all applications install successfully without any other changes.
Environment:

YunoHost version: 12.1.x
Debian: Bookworm
Affected locale:
LANG=tr_TR.UTF-8

Share relevant logs or error messages

During application installation, the following errors are reported:
Variable $install_dir wasn’t initialized when trying to replace INSTALL_DIR

In the logs, the variable name appears incorrectly due to locale-specific character handling:
Variable $ınstall_dır wasn’t initialized

Example error output:
ERROR - roundcube indirilmedi:
Uygulama indirme script’inde (betikde) bir hata oluştu :
Variable $ınstall_dır wasn’t initialized when trying to replace INSTALL_DIR
in /etc/nginx/conf.d/.d/roundcube.conf

After changing the system locale using:
Shellsudo locale-gen en_US.UTF-8sudo localectl set-locale LANG=en_US.UTF-8sudo rebootDaha fazla satır göster
the errors no longer occur and all applications install correctly.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.