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_US.UTF-8): No such file or directory

-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory

-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory

-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory

执行more /etc/sysconfig/i18n命令检查系统字符集

[[email protected] ~]# more  /etc/sysconfig/i18n

LANG="en_US.UTF-8"

SUPPORTED="zh_CN.GB18030:zh_CN:zh:zh_CN.UTF-8:en_US:en"

SYSFONT="latarcyrheb-sun16"

执行locale命令,提示如下异常,说明说明没安装en_US的local

[[email protected] ~]# locale

locale: Cannot set LC_CTYPE to default locale: No such file or directory

locale: Cannot set LC_MESSAGES to default locale: No such file or directory

locale: Cannot set LC_ALL to default locale: No such file or directory

LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

解决方案,修改如下:

vi /etc/sysconfig/i18n

# 添加下面的

LC_ALL=C

export LC_ALL

# 再执行下面的语句,使之生效

source /etc/sysconfig/i18n

原文地址:http://blog.51cto.com/11310506/2102817

时间: 2024-10-28 11:16:32

LC_CTYPE: cannot change locale (en_US.的相关文章

-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)

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

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

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

Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法

把语言环境变量改为英文 将Ubuntu系统语言环境改为英文的en_US.UTF-8 查看当前系统语言环境 locale 编辑配置文件.将zh_US.UTF-8改为en_US.UTF-8.zh改为en sudo nano /etc/default/locale LANG="en_US.UTF-8" LANGUAGE="en_US:en" 继续查看更改后的系统语言变量,假设出现下列错误,说明没安装en_US的local [email protected]:~$ loca

Flex编译程序出现 Could not find compiled resource bundle 'SharedResources' for locale 'en_US'.

Flex编译程序出现 Could not find compiled resource bundle 'SharedResources' for locale 'en_US'. 而且静态类居然为null,大家知道静态类是不需要显式初始化的 最后查了一通,发现这里 https://geonet.esri.com/thread/68125 按贴子里说的,在项目的附加编译参数里加上这个就好了 -locale -source-path=locale/{locale} -keep-all-type-sel

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:

/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 #基本就能