Amazon Linux 2023 へGitLab をリポジトリからインストールして利用しています。ですが、更新しようとしたところ以下のエラーになりました。
# dnf check-update
gitlab_gitlab-ee 346 B/s | 833 B 00 :02
gitlab_gitlab-ee 7 .2 kB/s | 3 .1 kB 00 :00
gitlab_gitlab-ee 16 kB/s | 7 .0 kB 00 :00
gitlab_gitlab-ee 2 .7 kB/s | 3 .8 kB 00 :01
gitlab_gitlab-ee 286 B/s | 833 B 00 :02
Error: Failed to download metadata for repo 'gitlab_gitlab-ee' : repomd.xml GPG signature verification error: Bad GPG signature
( snip)
Error: Failed to download metadata for repo 'runner_gitlab-runner-source' : repomd.xml GPG signature verification error: Bad GPG signature
Ignoring repositories: gitlab_gitlab-ee, gitlab_gitlab-ee-source, runner_gitlab-runner, runner_gitlab-runner-source
Last metadata expiration check: 1 day, 15 :27:18 ago on Thu Feb 26 17 :00:09 2026 .
今回は「GitLabのGPG鍵が有効期限切れになっていた」ことが原因でした。これを解消し、GPG鍵を更新する手順をメモしておきます。
続きを読む