Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1441350

Summary: [RFE] dnf should instruct the user to upgrade fedora-repos first
Product: [Fedora] Fedora Reporter: Bryan Yount <byount>
Component: dnfAssignee: rpm-software-management
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 11:27:08 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:

Description Bryan Yount 2017-04-11 18:04:43 UTC
Description of problem:
When upgrading from Fedora 24 to Fedora 25 recently, I encountered the following error when performing the "sudo dnf system-upgrade download --refresh --releasever=25" command. After 1+ GB of packages downloaded, I got the following error:

Curl error (37): Couldn't read a file:/// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64]

DNF should provide a better error message to the user. This error was only moderately helpful. DNF should suggest that the user update "fedora-repos" package before running the system-upgrade command. After updating fedora-repos to 24-6, I was able to successfully upgrade to F25.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. Install Fedora 24 with the older fedora-repos package.
2. Run "sudo dnf system-upgrade download --refresh --releasever=25"

Actual results:
Curl error is displayed and dnf command fails.

Expected results:
DNF should suggest possible workarounds to the user or offer to update the fedora-repos package automatically.

Additional info:
Obviously, I skipped the previous step of "sudo dnf upgrade --refresh" which resulted in the Fedora 25 RPM-GPG-KEY not installed on the system. I skipped this step because I didn't want to download 800 MB of updates to F24 just to then download another 1 GB of updates for F25. My system was mostly updated anyway so I figured it was ok to go straight to F25. Other users may make a similar calculation and so we should provide a better error message.

Comment 2 Martin Hatina 2017-04-12 11:27:08 UTC
Hello, you should always update your system before system-upgrade. Please see for how to use the system-upgrade.