Bug 2362034 - please workaround dnf bug 2362032
Summary: please workaround dnf bug 2362032
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-upgrade
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-24 11:35 UTC by Karel Volný
Modified: 2025-06-19 01:57 UTC (History)
3 users (show)

Fixed In Version: fedora-upgrade-42.2-1.fc41 fedora-upgrade-42.2-1.fc42
Clone Of:
Environment:
Last Closed: 2025-06-19 01:20:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karel Volný 2025-04-24 11:35:10 UTC
SSIA ...
fedora-upgrade-42.1-1.fc41 fails to upgrade from F41 to F42 due to bug 2362032
as I don't expect dnf updates be as flexible as fedora-upgrade updates, I think it is worth working around the bug

Reproducible: Always

Steps to Reproduce:
1. # fedora-upgrade
2. enter, enter ... online ...

Actual Results:
...
Choose upgrade method
  * offline - this use dnf-plugin-system-upgrade plugin and requires two reboots
            - this is official upgrade method
  * online  - this use distro-sync and require only one reboot
            - this is not officially tested by FedoraQA
For more information see https://fedoraproject.org/wiki/Upgrading

What is your choice? (offline/online)  online
Unknown argument "Downloading" for command "dnf5". Add "--help" for more information about the arguments.
It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(Downloading)'

Upgrade to Fedora 42 was not finished!
You can safely re-run fedora-upgrade again to start over with:
    fedora-upgrade --upgrade-to=42



Additional Information:
trying bash -x, the failing command is

dnf --releasever=42 --setopt=deltarpm=false --setopt=module_platform_id=platform:f42 Downloading Packages: --disableplugin=needs-restarting --disableplugin=tracer distro-sync

this change does the trick for me:

--- /usr/sbin/fedora-upgrade~   2025-04-24 13:32:36.441262377 +0200
+++ /usr/sbin/fedora-upgrade    2025-04-24 13:33:04.398546674 +0200
@@ -145,7 +145,7 @@
   # will print string "--enablerepo=updates-testing" if this is prerelease, "" otherwise
   local RELEASE=$1
   TEMP=$(mktemp -d)
-  dnf download -q --destdir "$TEMP" --disablerepo=* --enablerepo=fedora --releasever=$RELEASE fedora-repos
+  dnf download -q --destdir "$TEMP" --disablerepo=* --enablerepo=fedora --releasever=$RELEASE fedora-repos &> /dev/null
   if rpm2cpio "$TEMP"/fedora-repos*.rpm | cpio -i --quiet --to-stdout - ./etc/yum.repos.d/fedora-updates-testing.repo | grep 'enabled=1' >/dev/null ; then
     if [ -e /etc/yum.repos.d/fedora-updates-modular.repo ]; then
       echo "--enablerepo=updates-testing --enablerepo=updates-testing-modular"

Comment 1 Fedora Update System 2025-06-09 09:48:16 UTC
FEDORA-2025-527cdd3584 (fedora-upgrade-42.2-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-527cdd3584

Comment 2 Fedora Update System 2025-06-09 09:48:17 UTC
FEDORA-2025-3c225a1cd0 (fedora-upgrade-42.2-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3c225a1cd0

Comment 3 Fedora Update System 2025-06-10 01:31:30 UTC
FEDORA-2025-527cdd3584 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-527cdd3584`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-527cdd3584

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-06-10 02:01:55 UTC
FEDORA-2025-3c225a1cd0 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-3c225a1cd0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-3c225a1cd0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-06-19 01:20:30 UTC
FEDORA-2025-527cdd3584 (fedora-upgrade-42.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-06-19 01:57:35 UTC
FEDORA-2025-3c225a1cd0 (fedora-upgrade-42.2-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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