which quite often results in multiple versions of packages left on the system and inability to upgrade in the future because of file conflicts from different package versions. Also it can leave the dnf/rpm database in inconsistant state.
We’ve seen quite a few questions with this happening here on Ask Fedora already. In my humble opinion, the probability that the same have happened to @evelyn is quite high.
If it’s the case, then actions suggested by @vgaetera should help. I’m not sure all the commands they propose are needed and in this order (and I’m not ready to generate failed updates on my system to check), but still they should help.
I personally would probably begin with
sudo dnf check all – this should help to diagnose immediate problems with dnf and packages, such as package duplicates. Also it would be useful if @evelyn posted the output of this command here for all to see and provide better informed advice.
If any duplicates are reported, then
sudo dnf remove --duplicates is the way to proceed.
sudo dnf autoremove… well, i’d look at which packages it proposes to remove and see, if there’s something I think I need between them. It can potentially remove something needed – it should not when all works ok, but I’d still check.
sudo rpm --rebuilddb is a way to go if we know something wrong with rpm database… I personally wouldn’t start with it. But on the other hand maybe it wouldn’t do any harm even if the database was ok – this I simply don’t know – them we can recommend it even when we’re not sure about the database state (and failed updates can damage the rpm database, especially when computer was rebooted during the process).
dnf clean all simply deletes all the dnf caches and forces dnf to get them anew from the repository. It shouldn’t do any harm.
Regarding distro-sync – I simply don’t know if it will work (or result in transaction error as ordinary update does) in the situation with file conflicts I’ve described above, when commands provided by @vgaetera have helped people here on Ask Fedora several times.