-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnf5 update fails with gpgcheck=1 #4429
Comments
The Fedora instructions in the Jenkins handbook work with Fedora 41. The instructions at pkg.jenkins.io are trying to be more general purpose so that they run on all Red Hat distributions. We have a pending issue that proposes to replace those instructions with a link to the installation page of the Jenkins handbook. |
I have created jenkinsci/packaging#495 to try and address this issue, as it will require review from the infra-team and other maintainers. |
Next weekly build will update https://pkg.jenkins.io/redhat/ with the updated content. Thanks @kmartens27 ! |
Thanks very much @MarkEWaite |
The problem I'm reporting is not a documentation problem, and has nothing to do with which instructions are followed. The only important difference between the two sets of instructions are whether the packages come from the As it turns out, the problem was that the Fedora upgrade instructions suggest cleaning up old keys that are no longer referenced in /etc/yum.repos.d with the command As an aside, the jenkins.repo files (in both sets of instructions) use http instead of https for the repository, which makes the situation worse, if users resort to disabling gpg checks using I propose two updates to the jenkins.repo files to improve the situation:
As an alternative to number 1, the jenkins RPM should be changed to install the |
Thanks for the additional insights @ctubbsii ! Much appreciated!
Doesn't that mean that you didn't actually follow the instructions on the pkg.jenkins.io page? Those instructions include the step:
I thought that would install the Jenkins GPG key until the next time that someone runs My test installation was using a freshly installed Fedora 41 machine, without any upgrade. I followed the instructions from the installation guide with no issue. Based on your description of the root cause of the issue, I suspect that the pkg.jenkins.io instructions would have worked for me as well.
I like those proposals very much! Will they work as expected with RHEL 8 (and derivatives) and RHEL 9 (and derivatives)?
That sounds very attractive as well. Does that work with RHEL 8 (and derivatives) and RHEL 9 (and derivatives)? |
No. Perhaps I wasn't clear, but I encountered this after upgrading Fedora to 41. I followed those instructions to install Jenkins prior to upgrading Fedora. I did not expect to have to revisit any part of the Jenkins installation instructions after the Fedora 41 upgrade, since Jenkins was already installed.
You are correct. It was just unexpected (to me) that the jenkins key would have been removed, since it was still in use (Jenkins was still installed and still required updates), and I didn't notice that jenkins' key was included in the long list of old keys it removed. I found that it was because there was no
Yes, definitely they will. I was able to confirm with multiple 3rd-party repos on a RHEL8 machine that both suggestions will work on RHEL8 and RHEL9 (
Yes, there are no additional features needed for this alternative that differ from the previous suggestion. It just has a few advantages, like:
|
Reopening the issue as it looks like there might be some work to be done to improve the situation. @MarkEWaite I propose we'll discuss this during the 10 Dec. Infra meeting |
Service(s)
pkg.jenkins.io
Summary
I recently upgraded to Fedora 41, which now uses dnf5. dnf5 works fine for all my other configured yum repos, but for pkg.jenkins.io/redhat, a
dnf update
fails with the following error message:The only workaround that I know works is setting
gpgcheck=0
:Reproduction steps
dnf update
when an update is availableThe text was updated successfully, but these errors were encountered: