Dnf, can't update, would remove 3 packages

After a bad unfinished update because of a Gnome freeze (had to reboot), i get this error:

dnf distro-sync -y --refresh
Updating and loading repositories:
 Copr repo for cosmic-epoch owned by ryanabx                                                                                                                                                        100% |   4.9 KiB/s |   1.5 KiB |  00m00s
 Fedora 41 openh264 (From Cisco) - x86_64                                                                                                                                                           100% |   9.6 KiB/s | 989.0   B |  00m00s
 Visual Studio Code                                                                                                                                                                                 100% |  22.5 KiB/s |   1.5 KiB |  00m00s
 Fedora 41 - x86_64 - Updates                                                                                                                                                                       100% | 217.2 KiB/s |  24.5 KiB |  00m00s
 Terra 41                                                                                                                                                                                           100% |  16.7 KiB/s |   1.3 KiB |  00m00s
 Fedora 41 - x86_64                                                                                                                                                                                 100% |  57.8 KiB/s |  26.8 KiB |  00m00s
 Copr repo for cosmic-applets-unofficial owned by wiiznokes                                                                                                                                         100% |  11.8 KiB/s |   1.5 KiB |  00m00s
 Copr repo for scrcpy owned by zeno                                                                                                                                                                 100% |  14.3 KiB/s |   1.8 KiB |  00m00s
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: selinux-policy-targeted, systemd, systemd-udev
You can try to add to command line:
  --skip-broken to skip uninstallable packages

With skip broken, i also have an error.
Thanks

I don’t know, but it sounds like all these third party repositories are clashing.
Try to disable them selectively (I would start with Terra 41).

What is the difference between ‘distro-sync’ and ‘update’?

distro-sync can downgrade a package if an installed package is newer than the one in the repository.

1 Like

Hi Wiis,

You might try dnf clean all and then a dnf upgrade …

Hey, this wouldn’t be caused by Terra as far as I’m aware, do you know what you installed from Terra off the top of your head?

only zed. And i also don’t think it’s from an external repo because they likely don’t provide theses packages

I tried to remove terra and it didn’t change someting.

I was able to run sudo dnf clean and sudo dnf update/upgrade succesfully, but distro-sync still fail with the same error