-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)问题处理
CentOS7.9在升级glibc版本机器重启以后,ssh登录机器会报错:
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8)
处理方法用localedef 命令生成本地化数据:
-i 参数和字符集(-f 参数)用于生成本地化数据文件。
-v 参数用于显示详细的操作信息,
-c 参数用于校验生成的本地化数据文件。
[root@c9 ~]# localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
[warning] LC_NAME: field `name_gen' not defined
[warning] LC_IDENTIFICATION: field `audience' not defined
[warning] LC_IDENTIFICATION: field `application' not defined
[warning] LC_IDENTIFICATION: field `abbreviation' not defined
[verbose] LC_CTYPE: table for class "upper": 3264919828641826143 bytes
[verbose] LC_CTYPE: table for class "lower": 4051037683542732370 bytes
[verbose] LC_CTYPE: table for class "alpha": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "digit": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "xdigit": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "space": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "print": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "graph": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "blank": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "cntrl": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "punct": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "alnum": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for class "combining": 2512555868744 bytes
[verbose] LC_CTYPE: table for class "combining_level3": 18446744073709551615 bytes
[verbose] LC_CTYPE: table for map "toupper": 0 bytes
[verbose] LC_CTYPE: table for map "tolower": 139839694999330 bytes
[verbose] LC_CTYPE: table for map "totitle": 50331644 bytes
[verbose] LC_CTYPE: table for width: 0 bytes
在重新连接就不会有做个警告信息了~
Tag标签:「LC_TIME localedef locale」更新时间:「2023-08-30 14:05:19」阅读次数:「1725」