Bug 2397579 - file conflict between systemd-udev and systemd-networkd
Summary: file conflict between systemd-udev and systemd-networkd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-23 07:02 UTC by Dan Horák
Modified: 2025-10-13 16:45 UTC (History)
10 users (show)

Fixed In Version: systemd-258.1-2.fc44
Clone Of:
Environment:
Last Closed: 2025-10-13 16:45:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.