Fedora Account System
Red Hat Associate
Red Hat Customer
Hi Everyone. My apologies if I am missing something obvious here. I am following Upgrading Fedora Linux Using DNF System Plugin [0] to upgrade from Fedora 44 to Fedora 45 on x86_64. The cleanup tasks at [0] offer a step to remove old Fedora keys. It appears clean-rpm-gpg-pubkey is removing the previously imported Fedora 45 key: <BEGIN> $ sudo dnf system-upgrade download --releasever=45 ... Testing offline transaction Importing OpenPGP key 0xF577861E: UserID : "Fedora (45) <fedora-45-primary>" Fingerprint: 4F50A6114CD5C6976A7F1179655A4B02F577861E From : file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-45-x86_64 Is this ok [y/N]: y The key was successfully imported. $ sudo dnf offline reboot ... $ sudo clean-rpm-gpg-pubkey gpg: keybox '/tmp/kyDEtUOXNY/pubring.kbx' created gpg: /tmp/kyDEtUOXNY/trustdb.gpg: trustdb created Removing Fedora (45) <fedora-45-primary> public key Removing Fedora (44) <fedora-44-primary> public key Total affected keys: 2 </END> [0] <https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/> Reproducible: Always Steps to Reproduce: Upgrade according to <https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/>, and then run clean-rpm-gpg-pubkey in optional tasks. Actual Results: Fedora 44 and 45 public keys were removed. Expected Results: Fedora 44 public key removed; while Fedora 45 public key is retained. Additional Information: I'm working on amd64/x86_64. I have observed it on both KDE Desktop and Server editions. I do not know if this happens on other arches, like aarch64.
I was able to reproduce this with additional keys besides Fedora's (the rpmfusion key exhibits the same symptom) and root cause the problem. Fedora has moved repository config to the newer /usr/share/dnf5/repos.d and removed it from older/legacy /etc/yum.repos.d clean-rpm-gpg-pubkey does not read the new path at all, i.e., it does not see the Fedora 45 (or Rpm Fusion) repo config and so does not think any repository is using their gpg keys. Suggested Fix: Add /usr/share/dnf5/repos.d to clean-rpm-gpg-pubkey's check for configured repos
FEDORA-2026-17a26a6163 (clean-rpm-gpg-pubkey-0-15.20261106giteeabfc5.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-17a26a6163
FEDORA-2026-17a26a6163 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-17a26a6163` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-17a26a6163 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
*** Bug 2569037 has been marked as a duplicate of this bug. ***
FEDORA-2026-17a26a6163 (clean-rpm-gpg-pubkey-0-15.20261106giteeabfc5.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report.