I've got 8 Pis running. 7 of them SSH or SCP to the other one at various times. One of them (pi5) is now running Bullseye, and seems to have the locale set to en_US.UTF8, whereas the other 7 are on older OS versions and have the locale set to en_GB.UTF-8.
When I try to SSH from pi5 to any of the others, I get :
-bash: warning setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
I've tried using locale-gen to change the default on pi5 to the en_GB version, but it seems to hang. using raspi-config fails, generating a pile of error messages ending "No such file or directory"
Altering $HOME/.profile and adding :
LANG=en_GB.UTF-8
seems to work, to the extend that echo $LANG now gives me the right value, but the SSH still gives me the same error.
Running locale gives me :
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 LANG=en_GB.UTF8
but all other entries are en_US.UTF-8
So what to try next ?
Adrian