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:1.8.3.1-24.el7_9 will be updated
—> Package git.x86_64 0:1.8.3.1-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
Can you share the yum repository configuration, maybe the GPG key URL is hardcoded in there and needs a replacement? The new key needs to be downloaded and imported in the keyring too.
@timppu hit this on RHEL 9 as well.
I deleted the YUM repository and run the install script from runner/gitlab-runner - Installation · packages.gitlab.com again. I noticed new GPG key was imported on upgrade of gitlab-runner package. Did not investigate it deeper.
Also enabled the GPG check as well (I had disabled it before as a workaround):
gpgcheck=1
After that I also ran, just in case:
sudo yum clean all
Then normally:
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.