Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install (upgrade) systemd-networkd (version conflict) #1773

Closed
secext2022 opened this issue Aug 2, 2024 · 8 comments
Closed

Can not install (upgrade) systemd-networkd (version conflict) #1773

secext2022 opened this issue Aug 2, 2024 · 8 comments
Labels

Comments

@secext2022
Copy link

Describe the bug

With systemd-networkd installed, the system can not upgrade.

Because version of systemd from base system is systemd-255.8-1.fc40.x86_64, but no same version of systemd-networkd, so upgrade fail.

Reproduction steps

Install systemd-networkd and/or try to upgrade system.

Expected behavior

The system can upgrade.

Actual behavior

System update fail:

$ rpm-ostree status
State: idle
AutomaticUpdatesDriver: Zincati
  DriverState: active; trying to stage 40.20240709.3.1 (failed attempts: 2)

force update:

$ sudo rpm-ostree update
error: Updates and deployments are driven by Zincati (zincati.service)
See Zincati's documentation at https://github.com/coreos/zincati
Use --bypass-driver to bypass Zincati and perform the operation anyways
$ sudo rpm-ostree update --bypass-driver
2 metadata, 0 content objects fetched; 788 B transferred in 3 seconds; 0 bytes content written
Checking out tree 0e10a21... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2024-03-12T11:45:42Z solvables: 3
rpm-md repo 'updates' (cached); generated: 2024-08-01T02:48:03Z solvables: 22998
rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
rpm-md repo 'updates-archive' (cached); generated: 2024-06-30T05:31:17Z solvables: 22869
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: conflicting requests
  - package systemd-networkd-255.10-1.fc40.x86_64 from updates requires libsystemd-shared-255.10-1.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.10-1.fc40.x86_64 from updates requires libsystemd-shared-255.10-1.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - package systemd-networkd-255.10-1.fc40.x86_64 from updates requires systemd(x86-64) = 255.10-1.fc40, but none of the providers can be installed
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires systemd(x86-64) = 255.4-1.fc40, but none of the providers can be installed
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires libsystemd-shared-255.4-1.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires libsystemd-shared-255.4-1.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - package systemd-networkd-255.6-1.fc40.x86_64 from updates-archive requires systemd(x86-64) = 255.6-1.fc40, but none of the providers can be installed
  - package systemd-networkd-255.6-1.fc40.x86_64 from updates-archive requires libsystemd-shared-255.6-1.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.6-1.fc40.x86_64 from updates-archive requires libsystemd-shared-255.6-1.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - package systemd-networkd-255.7-1.fc40.x86_64 from updates-archive requires systemd(x86-64) = 255.7-1.fc40, but none of the providers can be installed
  - package systemd-networkd-255.7-1.fc40.x86_64 from updates-archive requires libsystemd-shared-255.7-1.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.7-1.fc40.x86_64 from updates-archive requires libsystemd-shared-255.7-1.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - cannot install both systemd-255.10-1.fc40.x86_64 from updates and systemd-255.8-1.fc40.x86_64 from @System
  - cannot install both systemd-255.4-1.fc40.x86_64 from fedora and systemd-255.8-1.fc40.x86_64 from @System
  - cannot install both systemd-255.6-1.fc40.x86_64 from updates-archive and systemd-255.8-1.fc40.x86_64 from @System
  - cannot install both systemd-255.7-1.fc40.x86_64 from updates-archive and systemd-255.8-1.fc40.x86_64 from @System

System details

Bare Metal:

$ rpm-ostree status -b
State: idle
AutomaticUpdatesDriver: Zincati
  DriverState: active; trying to stage 40.20240709.3.1 (failed attempts: 5)
BootedDeployment:
● fedora:fedora/x86_64/coreos/stable
                  Version: 40.20240701.3.0 (2024-07-16T16:03:29Z)
               BaseCommit: 45982eca152d020f23a547813538939e9bfdcfefc8c059e88970d1bbf4ada0bb
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
          LayeredPackages: hdparm sdparm smartmontools snapper strace systemd-networkd

Butane or Ignition config

No response

Additional information

The feature of NetworkManager is limited, so I have to use systemd-networkd for network config and disable NetworkManager.

@secext2022
Copy link
Author

#400 #401

@travier
Copy link
Member

travier commented Aug 2, 2024

Hum, it's weird that it is missing from the updates-archive repo.

@jlebon
Copy link
Member

jlebon commented Aug 7, 2024

Indeed, looks like it's simply not there:

$ dnf repoquery systemd --repofrompath=tmp,https://fedoraproject-updates-archive.fedoraproject.org/fedora/40/x86_64/ --disablerepo '*' --enablerepo tmp --refresh
systemd-0:255.6-1.fc40.x86_64
systemd-0:255.7-1.fc40.x86_64

Will file a ticket against https://pagure.io/releng/archive-repo-manager. (Edit: https://pagure.io/releng/archive-repo-manager/issue/21).

@jlebon jlebon added meeting topics for meetings and removed meeting topics for meetings labels Aug 7, 2024
@jlebon
Copy link
Member

jlebon commented Aug 8, 2024

This is fixed now.

$ dnf repoquery systemd --repofrompath=tmp,https://fedoraproject-updates-archive.fedoraproject.org/fedora/40/x86_64/ --disablerepo '*' --enablerepo tmp --refresh
systemd-0:255.10-1.fc40.x86_64
systemd-0:255.6-1.fc40.x86_64
systemd-0:255.7-1.fc40.x86_64
systemd-0:255.8-1.fc40.x86_64

@jlebon jlebon closed this as completed Aug 8, 2024
@onedr0p
Copy link

onedr0p commented Aug 12, 2024

What's the fix here? I'm running into the same issue.

sudo rpm-ostree upgrade                                                                       2 metadata, 0 content objects fetched; 787 B transferred in 1 seconds; 0 bytes content written
Checking out tree 3c1241b... done
Enabled rpm-md repositories: fedora fedora-cisco-openh264 updates copr:copr.fedorainfracloud.org:atim:starship
Importing rpm-md... done
rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2024-03-12T11:45:42Z solvables: 3
rpm-md repo 'updates' (cached); generated: 2024-08-12T01:32:58Z solvables: 23852
rpm-md repo 'copr:copr.fedorainfracloud.org:atim:starship' (cached); generated: 2024-08-02T07:10:45Z solvables: 2
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: conflicting requests
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires libsystemd-shared-255.4-1.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires libsystemd-shared-255.4-1.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - package systemd-networkd-255.4-1.fc40.x86_64 from fedora requires systemd(x86-64) = 255.4-1.fc40, but none of the providers can be installed
  - package systemd-networkd-255.10-3.fc40.x86_64 from updates requires libsystemd-shared-255.10-3.fc40.so()(64bit), but none of the providers can be installed
  - package systemd-networkd-255.10-3.fc40.x86_64 from updates requires libsystemd-shared-255.10-3.fc40.so(SD_SHARED)(64bit), but none of the providers can be installed
  - package systemd-networkd-255.10-3.fc40.x86_64 from updates requires systemd(x86-64) = 255.10-3.fc40, but none of the providers can be installed
  - cannot install both systemd-255.4-1.fc40.x86_64 from fedora and systemd-255.10-1.fc40.x86_64 from @System
  - cannot install both systemd-255.10-3.fc40.x86_64 from updates and systemd-255.10-1.fc40.x86_64 from @System

@jlebon
Copy link
Member

jlebon commented Aug 12, 2024

@onedr0p Make sure the updates-archive repo is enabled.

@onedr0p
Copy link

onedr0p commented Aug 12, 2024

@jlebon thanks! Sorry I should have been able to conclude that from the previous messages. All good here now.

@BreiteSeite
Copy link

BreiteSeite commented Oct 16, 2024

@onedr0p Make sure the updates-archive repo is enabled.

In case anyone is missing the fedora-upgrades-archive.repo file like my system (Fedora IoT 40) did, you can find it here: https://src.fedoraproject.org/rpms/fedora-repos/blob/f40/f/fedora-updates-archive.repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants