Unable to set system locale Openhabian 1.7.2

image

Gives this output

2022-02-22_15:45:54_GMT [openHABian] Setting locale based on user choice... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_GB.UTF-8... done
Generation complete.
*** update-locale: Error: invalid locale settings:  LANG=en_GB.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
FAILED (reconfigure locales)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "en_US.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Main UI looks like this:

Please try to fix it manually by editing /etc/default/locale. Maybe there is a missing line for

LANGUAGE = "en_GB.UTF-8",
  LC_ALL = "en_GB.UTF-8",
LC_CTYPE = "en_GB.UTF-8",
    LANG = "en_GB.UTF-8"

also, it’s possible there is a per user directive in ~/.bashrc (search like this: cat ~/.bashrc | grep export).

1 Like

the first line was commented out - is that by design?

I have made the change as described.