sudo apt-get install locales
sudo locale-gen en_US.UTF-8
export LC_ALL="en_US.UTF-8" # 永久生效写入bashrc或zshrc文件
#可选,如果以上设置不成功,还可以尝试修改环境变量,加入bashrc/zshrc配置文件中
export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"
参考
- https://askubuntu.com/questions/599808/cannot-set-lc-ctype-to-default-locale-no-such-file-or-directory
- http://popozhu.github.io/2013/11/06/tmux%EF%BC%8C%E4%B9%B1%E7%A0%81%E5%B7%B2%E6%88%90%E5%BE%80%E4%BA%8B/