【docker】Error: Failed to download metadata for repo ‘pgdg-common’: repomd.xml GPG signature verification error: Bad GPG signature
dockerでpostgresをインストールしようとしたら
Error: Failed to download metadata for repo ‘pgdg-common’: repomd.xml GPG signature verification error: Bad GPG signature
なにこれ??
調べるとPGDGをアップデートしないとこのエラーが出るらしい
今のバージョン確認
[root@91363d2a1494 /]# rpm -qa | grep pgdg
pgdg-redhat-repo-42.0-38PGDG.noarch
最新は0-54らしい
アップデートする
dnf –disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
pgdg-redhat-repo-latest.noarch.rpm 126 kB/s | 16 kB 00:00
Dependencies resolved.
=============================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================
Upgrading:
pgdg-redhat-repo noarch 42.0-54PGDG @commandline 16 k
Transaction Summary
=============================================================================================================================================================================================================
Upgrade 1 Package
Total size: 16 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : pgdg-redhat-repo-42.0-54PGDG.noarch 1/2
Cleanup : pgdg-redhat-repo-42.0-38PGDG.noarch 2/2
Verifying : pgdg-redhat-repo-42.0-54PGDG.noarch 1/2
Verifying : pgdg-redhat-repo-42.0-38PGDG.noarch 2/2
Upgraded:
pgdg-redhat-repo-42.0-54PGDG.noarch
Complete!
これでOKかな?
バージョン確認
[root@91363d2a1494 /]# rpm -qa | grep pgdg
pgdg-redhat-repo-42.0-54PGDG.noarch
成功!!
これでもう一度postgresインストールしてみる
yum -y install postgresql*
成功した!!
-0 Comment-