Bug 2268590 - Fedora 38 cannot be upgraded to Fedora 40 via Software (packagekit)
Summary: Fedora 38 cannot be upgraded to Fedora 40 via Software (packagekit)
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-repos
Version: 40
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: openqa Accepted0Day
Depends On:
Blocks: F40BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2024-03-08 13:18 UTC by Lukas Ruzicka
Modified: 2024-03-12 10:44 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-03-12 10:44:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Journalctl from the affected machine. (254.65 KB, text/plain)
2024-03-08 13:19 UTC, Lukas Ruzicka
no flags Details
Software failure (121.25 KB, image/png)
2024-03-08 13:24 UTC, Lukas Ruzicka
no flags Details

Description Lukas Ruzicka 2024-03-08 13:18:46 UTC
I have a freshly installed and fully updated Fedora Workstation 38. I would like to upgrade the system to Fedora 40, yet I am not able to do it, because the system fails on downloading the repos.

I think this is connected with fedora-modular repos missing in Fedora 40, because Software reports:

```
cannot update repo 'fedora-modular': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-40&arch=x86_64 (IP: 38.145.60.21); Last error: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-40&arch=x86_64 (IP: 85.236.55.6)
```

Similar error can be found in journalctl, see attachment.



Reproducible: Always

Steps to Reproduce:
1. Install Fedora 38 from scratch.
2. Run 'sudo dnf -y update --refresh' to update the system to latest packages.
3. Run 'gsettings set org.gnome.software show-upgrade-prerelease true' to allow upgrades to the Beta version.
4. Start Software and try to download the upgrades.
Actual Results:  
Fedora 38 cannot be upgraded to Fedora 40.

Expected Results:  
Upgrades are flawless.

This does not happen on Fedora 39 which can be upgraded without any problems.

Comment 1 Lukas Ruzicka 2024-03-08 13:19:36 UTC
Created attachment 2020660 [details]
Journalctl from the affected machine.

Comment 2 Lukas Ruzicka 2024-03-08 13:24:39 UTC
Created attachment 2020661 [details]
Software failure

Comment 3 Fedora Blocker Bugs Application 2024-03-08 13:25:21 UTC
Proposed as a Blocker for 40-beta by Fedora user lruzicka using the blocker tracking app because:

 I think this is a serious violation of the Upgrade requirements criterion (https://fedoraproject.org/wiki/Fedora_40_Beta_Release_Criteria#Upgrade_requirements).

Comment 4 Adam Williamson 2024-03-08 17:05:46 UTC
Ugh, I thought I checked that we'd removed the modular repos before F38 :/ Kevin, what do you think we should do? Put the redirect-to-the-fedora-repo back in the mirror system? :/

Comment 5 Kevin Fenzi 2024-03-08 17:14:47 UTC
Yeah, I suppose we need redirects in mm for fedora-40 (and can finally not have them with 41). 

I can try and set this up... or we can see if AdrianR can.

Comment 6 Kevin Fenzi 2024-03-09 00:45:23 UTC
ok. I setup the redirects. They should be live in ~1hour.

Comment 7 Zbigniew Jędrzejewski-Szmek 2024-03-09 12:42:27 UTC
'curl https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-40&arch=x86_64' not works,
and the <url> elements in the answer also return some data.
So I'm pretty sure this should work now.

Comment 8 Adam Williamson 2024-03-11 15:59:15 UTC
+5 in https://pagure.io/fedora-qa/blocker-review/issue/1503 , marking accepted as a 0-day blocker as the intended fix is not on any release media or previous release repos.

Comment 9 Zbigniew Jędrzejewski-Szmek 2024-03-12 10:44:39 UTC
$ podman run -it --rm fedora:38   

[root@38b8fe023837 /]# dnf distro-sync --releasever=40
Fedora 40 - x86_64                                                                    4.7 MB/s |  92 MB     00:19    
Fedora 40 openh264 (From Cisco) - x86_64                                              726  B/s | 2.6 kB     00:03    
Fedora Modular 40 - x86_64                                                            268 kB/s | 445 kB     00:01    
Fedora 40 - x86_64 - Updates                                                          252  B/s | 257  B     00:01    
Fedora Modular 40 - x86_64 - Updates                                                  345 kB/s | 445 kB     00:01    
Fedora 40 - x86_64 - Test Updates                                                     3.3 MB/s |  10 MB     00:03    
Fedora Modular 40 - x86_64 - Test Updates                                             268 kB/s | 445 kB     00:01    
Dependencies resolved.
======================================================================================================================
 Package                                 Architecture Version                             Repository             Size
======================================================================================================================
Upgrading:
...
Complete!

Fedora Modular 40 - x86_64 and
Fedora Modular 40 - x86_64 - Updates and
Fedora Modular 40 - x86_64 - Test Updates are all successfully downloaded.


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