AWS ec2 en_US.UTF-8 release

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" 

How do you solve this?

+7
source share
2 answers

Another solution is to add these lines to /etc/environment

 LANG=en_US.utf-8 LC_ALL=en_US.utf-8 

The next time you enter the warning message, it should disappear.

+23
source

Open the ssh_config file (in my case under Ubuntu it is located here: /etc/ssh/ssh_config ) and comment on this line:

 SendEnv LANG LC_* 

It means:

 #SendEnv LANG LC_* 
+2
source

All Articles