티스토리 뷰

CentOS 8 설치후 아래와 같은 locale message가 yum command 수행시 지속적으로 발생되어 이를 해결해보기로 하였다.

[root@jacobbaek ~]# yum list
Failed to set locale, defaulting to C.UTF-8

timezone 문제인가 싶어 timezone 설정도 확인해보았으나

[root@jacobbaek ~]# timedatectl status
               Local time: Wed 2020-10-07 09:36:35 KST
           Universal time: Wed 2020-10-07 00:36:35 UTC
                 RTC time: Wed 2020-10-07 00:36:35
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

이상없었고..

다시 locale 문제인듯하여 locale 설정이 잘못되어 있는지 확인해보고

[root@jacobbaek ~]# localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us

timezone을 Asia/Seoul로 설정하였기에 LANG도 변경하였다.

[root@jacobbaek ~]# localectl set-locale LANG=ko_KR.utf8
[root@jacobbaek ~]# localectl status
   System Locale: LANG=ko_KR.utf8
       VC Keymap: us
      X11 Layout: us

허나 현상은 그대로...

확인결과 특정 langpack을 설치해야만 해당 이슈가 해결된다고 알게 되어 해당 package 설치후 다시 시도해보았다.
결과는 정상적으로 관련 메세지가 출력되지 않았다.

[root@jacobbaek ~]# dnf install langpacks-en glibc-all-langpacks -y
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:04:48 ago on Wed Oct  7 09:38:07 2020.
Package langpacks-en-1.0-12.el8.noarch is already installed.
Dependencies resolved.
=================================================================================================
 Package                       Architecture     Version                   Repository        Size
=================================================================================================
Installing:
 glibc-all-langpacks           x86_64           2.28-101.el8              BaseOS            25 M
Upgrading:
 glibc                         x86_64           2.28-101.el8              BaseOS           3.7 M
 glibc-common                  x86_64           2.28-101.el8              BaseOS           1.3 M
 glibc-langpack-en             x86_64           2.28-101.el8              BaseOS           821 k

Transaction Summary
=================================================================================================
Install  1 Package
Upgrade  3 Packages

Total download size: 31 M
Downloading Packages:
(1/4): glibc-common-2.28-101.el8.x86_64.rpm                      184 kB/s | 1.3 MB     00:07    
(2/4): glibc-langpack-en-2.28-101.el8.x86_64.rpm                 208 kB/s | 821 kB     00:03    
(3/4): glibc-2.28-101.el8.x86_64.rpm                             220 kB/s | 3.7 MB     00:17    
(4/4): glibc-all-langpacks-2. 92% [=========================-  ] 164 kB/s |  29 MB     00:13 ETA
(4/4): glibc-all-langpacks-2.28-101.el8.x86_64.rpm               188 kB/s |  25 MB     02:17    
-------------------------------------------------------------------------------------------------
Total                                                            230 kB/s |  31 MB     02:17     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                         1/1 
  Upgrading        : glibc-common-2.28-101.el8.x86_64                                        1/7 
  Upgrading        : glibc-langpack-en-2.28-101.el8.x86_64                                   2/7 
  Running scriptlet: glibc-2.28-101.el8.x86_64                                               3/7 
  Upgrading        : glibc-2.28-101.el8.x86_64                                               3/7 
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew

  Running scriptlet: glibc-2.28-101.el8.x86_64                                               3/7 
  Installing       : glibc-all-langpacks-2.28-101.el8.x86_64                                 4/7 
  Cleanup          : glibc-2.28-72.el8.x86_64                                                5/7 
  Cleanup          : glibc-langpack-en-2.28-72.el8.x86_64                                    6/7 
  Cleanup          : glibc-common-2.28-72.el8.x86_64                                         7/7 
  Running scriptlet: glibc-all-langpacks-2.28-101.el8.x86_64                                 7/7 
  Running scriptlet: glibc-common-2.28-72.el8.x86_64                                         7/7 
  Running scriptlet: glibc-common-2.28-101.el8.x86_64                                        7/7 
  Verifying        : glibc-all-langpacks-2.28-101.el8.x86_64                                 1/7 
  Verifying        : glibc-2.28-101.el8.x86_64                                               2/7 
  Verifying        : glibc-2.28-72.el8.x86_64                                                3/7 
  Verifying        : glibc-common-2.28-101.el8.x86_64                                        4/7 
  Verifying        : glibc-common-2.28-72.el8.x86_64                                         5/7 
  Verifying        : glibc-langpack-en-2.28-101.el8.x86_64                                   6/7 
  Verifying        : glibc-langpack-en-2.28-72.el8.x86_64                                    7/7 

Upgraded:
  glibc-2.28-101.el8.x86_64                         glibc-common-2.28-101.el8.x86_64            
  glibc-langpack-en-2.28-101.el8.x86_64            

Installed:
  glibc-all-langpacks-2.28-101.el8.x86_64                                                        

Complete!
[root@jacobbaek ~]# yum list
마지막 메타 데이터 만료 확인 : 0:07:32 전에 2020년 10월 07일 (수) 오전 09시 38분 07초.
설치된 패키지
NetworkManager.x86_64                          1:1.20.0-3.el8                          @anaconda 
NetworkManager-libnm.x86_64                    1:1.20.0-3.el8                          @anaconda 
NetworkManager-team.x86_64                     1:1.20.0-3.el8                          @anaconda 

참고사이트

댓글
댓글쓰기 폼
공지사항
최근에 달린 댓글
Total
48,538
Today
6
Yesterday
103
링크
«   2020/10   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함