标题:[实践OK]CentOS8下ssh登陆出现[error] character map file `UTF-8' not found: No such file or directory 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Wed, 03 Feb 2021 17:55:28 +0000 作者:jackxiang 地址:https://jackxiang.com/post/10848/ 内容: 问题: #ssh -l xiangdong 10.10.0.109 xiangdong@10.10.0.109's password: sudo su - Activate the web console with: systemctl enable --now cockpit.socket Last login: Wed Feb 3 04:50:21 2021 from 10.10.2.1 -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) sudo su - /bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory [xiangdong@localhost ~]$ sudo su - -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory -bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.utf8): No such file or directory rpm -qa *langpack* cat /etc/locale.conf LC_ALL="zh_CN.utf8" LC_CTYPE="zh_CN.utf8" LANG="zh_CN.utf8" 解决办法: yum install glibc-langpack-zh -y Generated by Jackxiang's Bo-blog 2.1.1 Release