Centos 7.9, trying to run “sudo yum upgrade”. Here are the current versions and new versions that I am trying to upgrade to:
—> Package git.x86_64 0:188.8.131.52-24.el7_9 will be updated
—> Package git.x86_64 0:184.108.40.206-25.el7_9 will be an update
—> Package gitlab-ce.x86_64 0:15.11.0-ce.0.el7 will be updated
—> Package gitlab-ce.x86_64 0:16.0.1-ce.0.el7 will be an update
—> Package gitlab-runner.x86_64 0:15.11.0-1 will be updated
—> Package gitlab-runner.x86_64 0:16.0.1-1 will be an update
After yum downloads the packages (along with other packages to be updated), it aborts with an error:
How to fix this, and what are the correct key URLs?
EDIT: Not sure if this warning during the same yum upgrade run is relevant too:
warning: /var/cache/yum/x86_64/7Server/runner_gitlab-runner/packages/gitlab-runner-16.0.1-1.x86_64.rpm: Header V4 RSA/SHA 512 Signature, key ID 6ba75a4e: NOKEY
Public key for gitlab-runner-16.0.1-1.x86_64.rpm is not installed
(7/8): gitlab-runner-16.0.1-1.x86_64.rpm | 440 MB 00:00:11
Also enabled the GPG check as well (I had disabled it before as a workaround):
After that I also ran, just in case:
sudo yum clean all
sudo yum upgrade
And gitlab-runner got updated without issues, along with everything else.
I am unsure if I am missing some relevant steps (I am unsure what it means to “import the key in the keyring”, did I do it already with the above steps, or does it matter?), but at least it works now, without having to disable the GPG check.