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

"error: Could not depsolve transaction" "The operation would result in removing the following protected packages: systemd, systemd-udev" #5199

Open
1 task
westurner opened this issue Dec 22, 2024 · 1 comment

Comments

@westurner
Copy link

westurner commented Dec 22, 2024

Describe the bug

Trying to rpm-ostree upgrade but it keeps erroring with error: Could not depsolve transaction The operation would result in removing the following protected packages: systemd, systemd-udev and it doesn't indicate which packages are trying to remove protected packages.

(w/ RPMfusion's NVIDIA modules and also rpmdevtools layered, I eventually determined)

Reproduction steps

  1. From fc38? Rebase to fc41 gnome.
  2. Layer packages including RPMfusion's nvidia modules and rpmdevtools
  3. rpm-ostree upgrade which - for nvidia - does this:
  4. rpm-ostree install rpmdevtools akmods

Expected behavior

  • rpm-ostree upgrade should upgrade the system
  • rpm-ostree install rpmdevtools akmods should work
  • rpm-ostree should explain exactly which packages are "removing the following protected packages" (so that manual bisection of the package set isn't necessary)
    • Fix error message to indicate which operation would result in removing the protected packages

Actual behavior

Vague error messages about systemd?

$ rpm-ostree upgrade
# [...]
error: Could not depsolve transaction; 6 problems detected:
 Problem 1: The operation would result in removing the following protected packages: systemd, systemd-udev
 Problem 2: The operation would result in removing the following protected packages: systemd, systemd-udev
 Problem 3: The operation would result in removing the following protected packages: systemd, systemd-udev
 Problem 4: The operation would result in removing the following protected packages: systemd, systemd-udev
 Problem 5: The operation would result in removing the following protected packages: systemd, systemd-udev
 Problem 6: The operation would result in removing the following protected packages: systemd, systemd-udev
$ rpm-ostree install rpmdevtools akmods
# [...]
error: Could not depsolve transaction; 2 problems detected:
 Problem 1: The operation would result in removing the following protected packages: systemd
 Problem 2: The operation would result in removing the following protected packages: systemd

System details

  • $ rpm-ostree --version
    rpm-ostree:
     Version: '2024.9'
     Git: bd152998332c2b11af671447d3fd311319d5b3a8
     Features:
      - rust
      - compose
      - container
      - fedora-integration
    
  • fc41

Additional information

Workaround

rpm-ostree status | tee rpmostreestatus.log
rpm-ostree reset
systemctl reboot
# ...
rpm-ostree upgrade
systemctl reboot
# ...
rpm-ostree install <pkgs less those that cause the error>
systemctl reboot

To determine the <pkgs less those that cause the error> set, I did a binary search through the list of packages by commenting out half the packages to install from a script and re-running the rpm-ostree install command

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

No branches or pull requests

1 participant