Trying to upgrade to Fedora 40 results in errors related to X11 and Wayland

I’m currently using Fedora 39, KDE, X11. (NVIDIA’s driver, if that matters.) I tried to upgrade to Fedora 40 by typing sudo dnf system-upgrade download --releasever=40. Here’s the result:

Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
Fedora 40 - x86_64                              9.8 MB/s |  75 MB     00:07    
Fedora 40 openh264 (From Cisco) - x86_64        139  B/s | 2.6 kB     00:19    
Fedora 40 - x86_64 - Updates                    7.8 MB/s |  24 MB     00:03    
RPM Fusion for Fedora 40 - Free                 402 kB/s | 603 kB     00:01    
RPM Fusion for Fedora 40 - Free - Updates       159 kB/s |  54 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree              444 kB/s | 261 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - Updates     33 kB/s |  24 kB     00:00    
No match for group package "samyak-gujarati-fonts"
No match for group package "nafees-web-naskh-fonts"
No match for group package "layla-diwani-fonts"
No match for group package "multican"
No match for group package "baekmuk-ttf-batang-fonts"
No match for group package "nafees-tehreer-naskh-fonts"
No match for group package "nafees-riqa-fonts"
No match for group package "baekmuk-ttf-gulim-fonts"
No match for group package "eosrei-emojione-fonts"
No match for group package "gimp-heif-plugin"
No match for group package "lohit-nepali-fonts"
No match for group package "samyak-tamil-fonts"
No match for group package "ibus-bogo"
No match for group package "cdac-sakal-marathi-fonts"
No match for group package "layla-thuluth-fonts"
No match for group package "baekmuk-ttf-dotum-fonts"
No match for group package "lohit-malayalam-fonts"
No match for group package "nafees-pakistani-naskh-fonts"
No match for group package "google-noto-looped-thai-fonts"
No match for group package "layla-basic-arabic-fonts"
No match for group package "layla-boxer-fonts"
No match for group package "layla-digital-fonts"
No match for group package "samyak-odia-fonts"
No match for group package "baekmuk-ttf-hline-fonts"
No match for group package "layla-arcyarc-fonts"
No match for group package "samyak-malayalam-fonts"
No match for group package "fontawesome-fonts"
No match for group package "nafees-pakistani-web-naskh-fonts"
No match for group package "nafees-naskh-fonts"
No match for group package "layla-koufi-fonts"
No match for group package "layla-ruqaa-fonts"
No match for group package "samyak-devanagari-fonts"
No match for group package "lohit-tamil-classical-fonts"
No match for group package "kalapi-fonts"
No match for group package "scim-sayura"
No match for group package "paktype-ajrak-fonts"
No match for group package "google-noto-sans-phags-pa-fonts"
No match for group package "nafees-nastaleeq-fonts"
Error: 
 Problem: conflicting requests
  - package sddm-wayland-plasma-6.0.3-2.fc40.noarch from fedora conflicts with sddm-greeter-displayserver provided by sddm-x11-0.21.0-4.fc40.noarch from fedora
  - package sddm-x11-0.21.0-4.fc40.noarch from fedora conflicts with sddm-greeter-displayserver provided by sddm-wayland-plasma-6.0.3-2.fc40.noarch from fedora
  - package sddm-x11-0.21.0-4.fc40.noarch from fedora conflicts with sddm-greeter-displayserver provided by sddm-wayland-plasma-6.0.4-1.fc40.noarch from updates
  - package sddm-wayland-plasma-6.0.4-1.fc40.noarch from updates conflicts with sddm-greeter-displayserver provided by sddm-x11-0.21.0-4.fc40.noarch from fedora
  - problem with installed package sddm-x11-0.20.0-4.fc39.noarch
  - sddm-x11-0.20.0-4.fc39.noarch from @System  does not belong to a distupgrade repository
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

This type of problem usually occurs when a non-fedora package, or one that has been obsoleted by the newer release is installed.
In your case it appears the sddm-x11 has no equivalent in f40 so removing it probably would be required.

Also note that the default for f40 KDE apparently does not include x11 by default so it could be that the supporting packages for that one are missing. It is my understanding that the KDE/Plasma spin of f40 only includes wayland for the DE by default.

yeah I got the same in attempt of upgrade, I had sddm installed but it was deactivated. Even after removing everything related to sddm in attempt of upgrade I got such errors looks like some crap tries to install it in any way and --skip-broken with --allowerasing were not helpful.
So I’ve added --exclude=,
so steps:

  1. remove everything related to sddm sudo dnf remove sddm sddm* -y
  2. change your greeter e.g. sudo systemctl enable lightdm
  3. run upgrade command
sudo dnf system-upgrade download --releasever=40 -y --skip-broken  --allowerasing --exclude=sddm-wayland-plasma,sddm-greeter-displayserver,sddm-x11 

Actually IMHO after ~10 years of wayland it is still suxxx and that’s shameful that distros pushing it so hard when it’s actually not ready for usage in many cases, that’s really turning some new users do not use linux…