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 bugzilla.redhat.com.
Bug 1441350 - [RFE] dnf should instruct the user to upgrade fedora-repos first
Summary: [RFE] dnf should instruct the user to upgrade fedora-repos first
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-11 18:04 UTC by Bryan Yount
Modified: 2017-04-12 11:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-12 11:27:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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):
fedora-repos-24-1


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 https://fedoraproject.org/wiki/DNF_system_upgrade for how to use the system-upgrade.


Note You need to log in before you can comment on or make changes to this bug.