Linux/CentOS Stream 9

[오류 수정] 'pgdg-common': repomd.xml GPG signature verification error: Bad GPG signature

Ryan's Tech Note 2024. 1. 24. 19:36

현재 centos stream 9 에 postgresql-14 를 설치해서 사용중이다. (본 블로그에 설치방법 참조)

하지만 다음과 같이 업데이트시 오류가 발생했는데 다음과 같이 해결하였다.

 


 

[root@voidcom postgresql-dump]# dnf update all
PostgreSQL common RPMs for RHEL / Rocky 9 - x86_64                                                                               458  B/s | 659  B     00:01
PostgreSQL common RPMs for RHEL / Rocky 9 - x86_64                                                                               1.6 MB/s | 1.7 kB     00:00
PostgreSQL common RPMs for RHEL / Rocky 9 - x86_64                                                                               113  B/s | 659  B     00:05
오류: repo를 위한 메타자료 내려받기에 실패하였습니다 'pgdg-common': repomd.xml GPG signature verification error: Bad GPG signature

 


 

[해결방법]


[root@voidcom postgresql-dump]# yum remove pgdg-redhat-repo.noarch
종속성이 해결되었습니다.
=================================================================================================================================================================
 꾸러미                                      구조                              버전                               저장소                                    크기
=================================================================================================================================================================
삭제 중:
 pgdg-redhat-repo                            noarch                            42.0-32                            @@commandline                             14 k

연결 요약
=================================================================================================================================================================
삭제  1 꾸러미

사용 가능한 공간 : 14 k
진행할까요? [y/N]: y
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
  준비 중     :                                                                                                                                              1/1
  삭제 중     : pgdg-redhat-repo-42.0-32.noarch                                                                                                              1/1
  확인 중     : pgdg-redhat-repo-42.0-32.noarch                                                                                                              1/1

제거되었습니다:
  pgdg-redhat-repo-42.0-32.noarch

완료되었습니다!


[root@voidcom postgresql-dump]# dnf update all
마지막 메타자료 만료확인(3:43:22 이전): 2024년 01월 24일 (수) 오후 03시 49분 46초.
인수가 일치하지 않습니다: all
오류: 최신화 할 꾸러미 없음.

 


 

[root@voidcom postgresql-dump]# systemctl status postgresql-14
● postgresql-14.service - PostgreSQL 14 database server
     Loaded: loaded (/usr/lib/systemd/system/postgresql-14.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-01-24 19:33:23 KST; 5min ago
       Docs: https://www.postgresql.org/docs/14/static/
    Process: 68163 ExecStartPre=/usr/pgsql-14/bin/postgresql-14-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
   Main PID: 68168 (postmaster)
      Tasks: 10 (limit: 99076)
     Memory: 39.7M
        CPU: 522ms
     CGroup: /system.slice/postgresql-14.service
             ├─68168 /usr/pgsql-14/bin/postmaster -D /var/lib/pgsql/14/data/
             ├─68169 "postgres: logger "
             ├─68171 "postgres: checkpointer "
             ├─68172 "postgres: background writer "
             ├─68173 "postgres: walwriter "
             ├─68174 "postgres: autovacuum launcher "
             ├─68175 "postgres: stats collector "
             ├─68176 "postgres: logical replication launcher "
             ├─68186 "postgres: posain posain_db 192.168.0.8(60852) idle"
             └─68201 "postgres: posain posain_db 192.168.0.8(60861) idle"

 1월 24 19:33:22 voidcom systemd[1]: Starting PostgreSQL 14 database server...
 1월 24 19:33:23 voidcom postmaster[68168]: 2024-01-24 19:33:23.036 KST [68168] 로그:  서버 로그를 로그 수집 프로세스로 보냅니다.
 1월 24 19:33:23 voidcom postmaster[68168]: 2024-01-24 19:33:23.036 KST [68168] 힌트:  이제부터 서버 로그는 "log" 디렉터리에 보관됩니다.
 1월 24 19:33:23 voidcom systemd[1]: Started PostgreSQL 14 database server.

 

 

[참조]

https://access.redhat.com/discussions/7052111