본문 바로가기

쓰기

RHEL8 버전에서 ssh접속시 아래내용으로 setlocale 메시지가 출력하는 경우
 

Last login: Tue Sep 28 15:36:49 2021 from 192.168.0.10
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)

해당서버에 필요한 언어팩이 없어서 발생한 것. 

조치사항

$> yum install glibc-langpack-en -y
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:14:53 ago on Tue Sep 28 14:35:14 2021.
Dependencies resolved.
===========================================================================================================================================================================================================
 Package                                                Architecture                                Version                                              Repository                                   Size
===========================================================================================================================================================================================================
Installing:
 glibc-langpack-en                                      x86_64                                      2.28-151.el8                                         baseos                                      825 k

Transaction Summary
===========================================================================================================================================================================================================
Install  1 Package

Total download size: 825 k
Installed size: 6.0 M
Downloading Packages:
glibc-langpack-en-2.28-151.el8.x86_64.rpm                                                                                                                                  8.0 MB/s | 825 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                      2.2 MB/s | 825 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                   1/1
  Installing       : glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1
  Running scriptlet: glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1
  Verifying        : glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1

Installed:
  glibc-langpack-en-2.28-151.el8.x86_64

Complete!