https://aws.amazon.com/amazon-linux-ami/2012.03-release-notes/
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) [ec2-user@ip-10-136-14-68 ~]$ vi ~/.bash_profile [ec2-user@ip-10-136-14-68 ~]$ # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH export LC_CTYPE="en_US.UTF-8"
Comment résolvez-vous cela?
Une autre solution consiste à append ces lignes à /etc/environment
LANG=en_US.utf-8 LC_ALL=en_US.utf-8
La prochaine fois que vous vous connecterez, le message d’avertissement devrait avoir disparu.
Ouvrez votre fichier ssh_config
(dans mon cas, sous Ubuntu, il se trouve ici: /etc/ssh/ssh_config
), et commentez cette ligne:
SendEnv LANG LC_*
Ça signifie :
#SendEnv LANG LC_*