Qt5-qtbase-devel bug

Hi,

I did the following and I was prompted to remove my kernel, I wonder if this is a bug. I am on Fedora 43 for desktop.

sudo dnf install qt5-qtbase-devel
Updating and loading repositories:
Repositories loaded.
Package "qt5-qtbase-devel-5.15.18-1.fc43.x86_64" is already installed.

Package                                   Arch        Version                                    Repository                  Size
Removing:
 kernel                                   x86_64      6.18.5-100.fc42                            <unknown>                0.0   B
 kernel-core                              x86_64      6.18.5-100.fc42                            <unknown>               97.6 MiB
 kernel-devel                             x86_64      6.18.5-100.fc42                            <unknown>               80.9 MiB
 kernel-modules                           x86_64      6.18.5-100.fc42                            <unknown>               96.2 MiB
 kernel-modules-core                      x86_64      6.18.5-100.fc42                            <unknown>               67.9 MiB
 kernel-modules-extra                     x86_64      6.18.5-100.fc42                            <unknown>                4.2 MiB
Removing dependent packages:
 kmod-nvidia-6.18.5-100.fc42.x86_64       x86_64      3:580.119.02-1.fc42                        @commandline            35.4 MiB

Transaction Summary:
 Removing:           7 packages

After this operation, 382 MiB will be freed (install 0 B, remove 382 MiB).
Is this ok [y/N]: n
Operation aborted by the user.

Thank you for any help on this.

Get the same thing if you dnf reinstall, seeing as you already have it installed?

For info, I cannot replicate using install:

┌─🎩 lurcher ~
├─
└─➜ sudo dnf install qt5-qtbase-devel                                             18:11 Thu 26-Feb
Updating and loading repositories:
Repositories loaded.
Package                        Arch      Version                         Repository            Size
Installing:
 qt5-qtbase-devel              x86_64    5.15.18-1.fc43                  updates           19.1 MiB
Installing dependencies:
 libX11-devel                  x86_64    1.8.12-1.fc43                   fedora             1.0 MiB
 libXau-devel                  x86_64    1.0.12-3.fc43                   fedora             7.5 KiB
 libglvnd-core-devel           x86_64    1:1.7.0-8.fc43                  fedora            40.3 KiB
 libglvnd-devel                x86_64    1:1.7.0-8.fc43                  fedora             2.1 MiB
 libxcb-devel                  x86_64    1.17.0-6.fc43                   fedora             2.7 MiB
 qt5-rpm-macros                noarch    5.15.18-1.fc43                  updates            1.6 KiB
 vulkan-headers                noarch    1.4.341.0-1.fc43                updates           36.1 MiB
 vulkan-loader-devel           x86_64    1.4.341.0-1.fc43                updates            8.0 KiB
 xorg-x11-proto-devel          noarch    2024.1-5.fc43                   fedora             1.7 MiB

Transaction Summary:
 Installing:        10 packages

Total size of inbound packages is 8 MiB. Need to download 8 MiB.
After this operation, 63 MiB extra will be used (install 63 MiB, remove 0 B).
Is this ok [y/N]:

That’s quite an old kernel version, 6.18.5 and still from F42, while F43 is on 6.18.13. And from your qt5-qtbase-devel, it appears you are indeed on F43. So dnf removing an old F42 kernel doesn’t surprise me much.

How many other kernels do you have installed?

I’m not sure actually.. maybe I would need to uninstall some. I just right now got a similar error trying to install python3-tkinter.

Running: rpm -q kernel
I do have:

kernel-6.18.5-100.fc42.x86_64
kernel-6.18.10-100.fc42.x86_64
kernel-6.18.12-100.fc42.x86_64
kernel-6.18.12-200.fc43.x86_64

Which is quite a bit. I just recently installed fedora 43 and thought it went right. Maybe I should try uninstalling some and maybe when I try to install certain packages it prompts to remove old kernels?

Yes when I run reinstall, it shows the same error.

I understand you cannot replicate my error.

What does this give?

dnf --dump-main-config | grep installonly_limit

On a default Fedora install, this should say “installonly_limit = 3”, i.e. 3 kernels simultaneously installed. If so, then it’s not too surprising that dnf tries to remove the oldest of the 4 at every opportunity. (Though I’m not sure how you would have ended up with 4 kernels to begin with.)

1 Like

dnf automatically keeps the current and the previous two kernels around. See installonly packages and the installonly_limit option.

If you have more than installonly_limit kernels installed, dnf will remove the oldest one after a transaction. In your case, the 6.18.5 kernel fits that.

What error are you referring to? What I saw in your post seems to be normal dnf behavior. It’s printing that it is going to remove the old kernel as part of the current invocation, at which point you aborted. Or am I missing something?

yes the same one