Bug 2397579

Summary: file conflict between systemd-udev and systemd-networkd
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: daan.j.demeyer, daniel, dtardon, fedoraproject, lnykryn, msekleta, suraj.ghimire7, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-258.1-2.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-13 16:45:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Horák 2025-09-23 07:02:56 UTC
Seems there is file conflict between systemd-udev and systemd-networkd. I have not experienced it myself, but my colleague got into the same situation as described https://discussion.fedoraproject.org/t/dnf-update-fails-due-to-file-conflict-in-systemd-networkd-between-installed-and-new-version/164520

...
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

AFAICT the conflicting files are owned by both systemd-udev and systemd-networkd, so perhaps a transaction ordering issue?


Reproducible: Always

Comment 1 Daniel Jonsson 2025-09-26 21:26:31 UTC
I’m experiencing the same issue. I’m running `sudo dnf update`, and it wants to:

```
Transaction Summary:
 Installing:         7 packages
 Upgrading:        210 packages
 Replacing:        212 packages
 Removing:           5 packages
```

But it fails with this error:

```
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 don't know how to solve this and get my system updated now.

Comment 2 David Tardon 2025-10-03 13:08:34 UTC
/usr/lib/systemd/systemd-network-generator (and the corresponding man page) is in both packages for reasons (see #2328723). The transaction failure seen here appears because systemd-networkd is being updated while systemd-udev is not. That's the real problem.

Btw, I don't see how this could be possible without dependency resolution errors, because both packages require libsystemd-shared-%{version}-%{release}.so (provided by systemd-libs). And given that the library is linked by the majority of systemd binaries (incl. generators), the most likely result of a "successful" update would be an unbootable system...

Comment 3 Fedora Update System 2025-10-13 15:49:41 UTC
FEDORA-2025-3b0a59cb7e (systemd-258.1-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3b0a59cb7e

Comment 4 Zbigniew Jędrzejewski-Szmek 2025-10-13 16:00:42 UTC
I forgot to reply here… I added an explicit 
Conflicts:      systemd-networkd < %{version}-%{release}
Conflicts:      systemd-udev < %{version}-%{release}
in the two packages.

Comment 5 Fedora Update System 2025-10-13 16:45:36 UTC
FEDORA-2025-3b0a59cb7e (systemd-258.1-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.