Bug 1438503
| Summary: | system upgrade from Fedora 25 to Rawhide fails due to rpm-gpg key missing | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joe Julian <joe> |
| Component: | fedora-repos | Assignee: | Dennis Gilmore <dennis> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 26 | CC: | dennis, extras-qa, grgoffe, jkadlcik, jmracek, kellin, kevin, mboddu, packaging-team-maint, pbrobinson, prd-fedora, robatino, rpm-software-management, sergio, squimrel+bugzilla, vmukhame, wwoods, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1310891 | Environment: | |
| Last Closed: | 2018-05-29 12:33:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Joe Julian
2017-04-03 14:57:37 UTC
Even worse --nogpg didn't even work for me because after: ``` dnf system-upgrade reboot --nogpg ``` It'll complain anyways. Thanks to help by robatino in #fedora-qa I was able to gather the key for the installation as follows (assuming that fedora-repos-rawhide is installed): ``` # Download rawhide package that has the key. dnf download --disablerepo=\* --enablerepo=rawhide fedora-repos # Copy it out of the package into the correct location. rpm2cpio ./fedora-repos-28-0.1.noarch.rpm | cpio -iv --to-stdout ./etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary | tee /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary # Create the softlink that marks it as the rawhide key. ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-rawhide-$(uname -p) ``` Since squimrel was using F26, updating the Version to 26. I see your problem. I combine information from https://fedoraproject.org/wiki/Upgrading_Fedora_using_package_manager?rd=Upgrading_Fedora_using_yum#To_Rawhide and https://fedoraproject.org/wiki/DNF_system_upgrade and I have a solution: # dnf upgrade --refresh # dnf install dnf-plugins-core fedora-repos-rawhide # dnf config-manager --set-disabled fedora updates updates-testing # dnf config-manager --set-enabled rawhide # dnf clean -q dbcache packages metadata As a source for gpg-keys, fedora-repos can be used # dnf download fedora-repos # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-primary # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary # dnf system-upgrade download --refresh --releasever=28 # sudo dnf system-upgrade reboot Hope that it works. Unfortunately there is a problem with gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch in case releasever "rawhide" is used. Releasever "rawhide" for metalink is valid but not for gpgkey location. Therefore I change a component to fedora-repos to ask if they could come with solution or unification. Hi , update Fedora 27 to Rawhide fails due to rpm-gpg key missing Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-rawhide-x86_64 rpm -q fedora-gpg-keys-27-1.noarch -l | grep rawhide (nothing) I fixed with ln -sf /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-rawhide-x86_64 warning: /home/lib/system-upgrade/fedora-ebd04873699a984e/packages/bind-9.11.1-6.P3.fc27.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 9db62fb1: NOKEY Importing GPG key 0x9DB62FB1: Userid : "Fedora 28 (28) <fedora-28>" Fingerprint: 128C F232 A937 1991 C8A6 5695 E08E 7E62 9DB6 2FB1 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-rawhide-x86_64 Key imported successfully This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |