I have only updated via dnf update. Now I can dowload everything and start the update, but it fails with the following:
Transaction failed: Rpm transaction failed.
file /usr/lib/systemd/systemd-network-generator from install of systemd-networkd-257.9-2.fc42.x86_64 conflicts with file from package systemd-udev-257.7-1.fc42.x86_64
file /usr/share/man/man8/systemd-network-generator.service.8.gz from install of systemd-networkd-257.9-2.fc42.x86_64 conflicts with file from package systemd-udev-257.7-1.fc42.x86_64
Can’t remove systemd-networkd-257.7 because it’s protected, I’ve done dnf autoremove, dnf clean, dnf list package-cleanup, dnf update –allowerasing all with no result.
Am at a bit of a loss where to go from here? Any ideas
Running transaction
Transaction failed: Rpm transaction failed.
- file /usr/lib/systemd/systemd-network-generator from install of systemd-networkd-257.9-2.fc42.x86_64 conflicts with file from package systemd-udev-257.7-1.fc42.x86_64
- file /usr/share/man/man8/systemd-network-generator.service.8.gz from install of systemd-networkd-257.9-2.fc42.x86_64 conflicts with file from package systemd-udev-257.7-1.fc42.x86_64
I ran sudo dnf check and it showed me that I had a lot of duplicated packages installed with different versions numbers. Didn’t know prior that it could happen. Maybe you can run that command and perhaps it will give you some clue about what’s wrong?
I installed all the non-troublesome packages. Then I did as you suggested:
sudo dnf4 check –duplicates
This gave me a rather short list including the troublesome package systemd and some updated packages that had apparently installed faultlessly. Then I ran:
sudo dnf4 remove –duplicates
this then successfully installed everything. So job done, back upto date