Installing package kernel-core-6.4.8-200.fc38.x86_64 needs 45MB more space on the /boot filesystem?

I’m running F38 on a 2TB SSD, half of which is partitioned for Windows, the rest for Fedora. I dual boot.

In all my years of using Linux, this has never happened until now.

Why is this happening and how do I fix it?

Total download size: 124 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): kernel-6.4.8-200.fc38.x86_64.rpm                                                      151 kB/s | 139 kB     00:00    
(2/6): kernel-core-6.4.8-200.fc38.x86_64.rpm                                                 415 kB/s |  16 MB     00:38    
(3/6): kernel-devel-6.4.8-200.fc38.x86_64.rpm                                                434 kB/s |  19 MB     00:45    
(4/6): kernel-modules-extra-6.4.8-200.fc38.x86_64.rpm                                        597 kB/s | 2.6 MB     00:04    
(5/6): kernel-modules-core-6.4.8-200.fc38.x86_64.rpm                                         1.4 MB/s |  31 MB     00:22    
(6/6): kernel-modules-6.4.8-200.fc38.x86_64.rpm                                              626 kB/s |  56 MB     01:31    
Total                                                                                        1.3 MB/s | 124 MB     01:32     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  installing package kernel-core-6.4.8-200.fc38.x86_64 needs 45MB more space on the /boot filesystem

Error Summary
Disk Requirements:
   At least 45MB more space needed on the /boot filesystem.

Sounds like your boot partition is full.

df -h /boot
ls -lh /boot

See also /boot nearly full - how to free space? - #3 by computersavvy

Oh it’s definitely full. But why? I’ve been running Linux for years and have never had this issue,

How do I remedy this? I don’t think this should be happening.

How many kernels do have installed?
Maybe old ones didn’t get removed.

Check number of installed kernels:

cat /etc/dnf/dnf.conf
dnf list installed kernel*

Be careful when executing this command:

sudo dnf remove --oldinstallonly
1 Like

We don’t know what all you may have in /boot that occupies space.
The df and ls commands given above will provide some of that info.

The thread linked above may be very helpful.

Yeah 4 old ones were not uninstalled, which is odd.

The link you provided fixed the problem, though.


1 Like