V Tue, Aug 06, 2024 at 10:39:07AM -0400, Neal Gompa napsal(a): > On Tue, Aug 6, 2024 at 10:32 AM Richard W.M. Jones <rjones@xxxxxxxxxx> wrote: > > > > On Tue, Aug 06, 2024 at 12:40:33AM -0700, Gordon Messmer wrote: > > > root@localhost:~# dnf install kiwi-cli > > > ... > > > > > > root@localhost:~# dnf5 remove kiwi-cli > > > Failed to resolve the transaction: > > > Problem: The operation would result in removing the following > > > protected packages: grub2-efi-ia32, grub2-efi-x64 > > > > Does it work if you add --noautoremove ? > > > > > root@localhost:~# rpm -q dnf5 rpm > > > dnf5-5.2.5.0-2.fc41.x86_64 > > > rpm-4.19.92-6.fc41.x86_64 > > > > > > I get the error that removing a package would remove grub2 when I > > > try to remove qemu-user-static-x86-9.0.0-2.fc41.x86_64, > > > qemu-user-static-arm-9.0.0-2.fc41.x86_64, > > > qemu-user-static-aarch64-9.0.0-2.fc41.x86_64, but not any of the > > > other qemu-user-static packages that kiwi pulls in. > > > > I am able to remove qemu-user-static-arm (even without > > --noautoremove), so I suspect the dependency path could be something > > else starting from kiwi. > > > > I have the same versions of qemu & dnf5 here. > > > > I'm not sure why removing kiwi-cli is triggering this, but I can > answer what's going on. > > This is the dependency relationship: kiwi-cli -> python3-kiwi -> > kiwi-systemdeps -> kiwi-systemdeps-disk-images -> > kiwi-systemdeps-bootloaders -> grub2-efi-x64 and grub2-efi-ia32 > > However, uninstalling kiwi-cli should not trigger this error. It > should just uninstall all parts of the set that are not protected, > since not autoremoving something should not be a critical failure. > I can reproduce it: # dnf5 install kiwi-systemdeps-disk-images [...] # dnf5 remove kiwi-systemdeps-disk-images Failed to resolve the transaction: Problem: The operation would result in removing the following protected packages: grub2-efi-ia32, grub2-efi-x64, grub2-pc Maybe DNF5 forgets to protect protected packages from the autoremoval. Maybe its a regression in new libsolv-0.7.30. I reported it upstrean <https://github.com/rpm-software-management/dnf5/issues/1614>. -- Petr
Attachment:
signature.asc
Description: PGP signature
-- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue