/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) centos7

今天登陆centos 7 遇到一个 警告

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

bash : warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

只要执行 :

yum -y install kde-l10n-Chinese telnet &&
yum -y reinstall glibc-common

#基本就能搞定 ,还有修改一下 

/etc/locale.conf  

LC_ALL="zh_CN.UTF-8"

在docker 容器里,还需要执行下

localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

原文地址:https://www.cnblogs.com/fan-gx/p/11137943.html

时间: 2024-11-05 21:35:21

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) centos7的相关文章

warning: setlocale: LC_CTYPE: cannot change locale

setlocale warning 使用mac上面iterm2一段时间了,登陆服务器老是报如下warning warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 然后yum 安装的时候也会报LC_CTYPE环境变量的问题.于是抽空搜索了一下,找到了如下文章http://www.cyberciti.biz/faq/os-x-terminal-bash-warning-setloc

终端SSH远程连接CentOS报错:-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

终端SSH远程连接CentOS时,报以下错误提示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 在centos服务器上 sudo vim /etc/locale.conf 内容如下: LC_ALL=en_US.utf8 LC_CTYPE=en_US.utf8 LANG=en_US.utf8 重新连接就正常了. 原文地址:https://www.cnblog

CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)

centos5.x 登陆显示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_MESSAG

-bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8)

最近发现MDT推出去的系统的有不同问题,其问题就不说了,主要是策略权限被域继承了.比如我们手动安装的很多东东都是未配置壮态,推的就默认为安全壮态了,今天细找了一下,原来把这个关了就可以了. -bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8)

Mac iTerm2登陆CentOS提示warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

[报错原因]:没有utf-8这个语系(没添加语言_国名前缀),LC_ALL又没设定值. 在 /etc/environment 加入以下两行,重新登陆即可. LANG=en_US.utf-8 LC_ALL=en_US.utf-8 原文地址:https://www.cnblogs.com/imzye/p/8503576.html

ssh登录locale报错:cannot change locale (zh_CN.UTF-8): No such file or directory

一.登录ssh报错: Last login: Tue Apr 23 03:42:01 2019 from 172.28.146.109 -bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8): No such file or directory -bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8) -bash: warning:

LC_CTYPE: cannot change locale (en_US.

升级glibc库后,使用SecureCRT登录linux,提示: ast login: Mon Feb 20 02:03:21 2017 from 192.168.4.187 -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory -bash: warning: setlocale: LC_COLLATE: cannot change locale (en

登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c

Xshell登录linux系统时会出现报错:-bash: warning: setlocale: LC_CTYPE: cannot change locale (latin1): No such file or directory-bash: warning: setlocale: LC_COLLATE: cannot change locale (latin1): No such file or directory-bash: warning: setlocale: LC_MESSAGES:

解决:perl: warning: Please check that your locale settings

问题: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "zh_CN.UTF-8", LC_TERMINAL_VERSION = "3.3.3beta2", LC_TERMINAL = "iTerm2", LANG