Updating to newest kernel using dnf upgrade
constantly fails.
Running transaction
Preparing : 1/1
Installing : kernel-modules-core-6.9.12-200.fc40.x86_64 1/4
error: failed to open dir lib of /lib/modules/6.9.12-200.fc40.x86_64/: Not a directory
Error unpacking rpm package kernel-modules-core-6.9.12-200.fc40.x86_64
Installing : kernel-core-6.9.12-200.fc40.x86_64 2/4
error: unpacking of archive failed on file /lib/modules/6.9.12-200.fc40.x86_64/build;66af085d: cpio: open failed - Not a directory
error: kernel-modules-core-6.9.12-200.fc40.x86_64: install failed
error: failed to open dir lib of /lib/: Not a directory
Error unpacking rpm package kernel-core-6.9.12-200.fc40.x86_64
Installing : kernel-modules-6.9.12-200.fc40.x86_64 3/4
error: unpacking of archive failed on file /lib/modules: cpio: open failed - Not a directory
error: kernel-core-6.9.12-200.fc40.x86_64: install failed
error: failed to open dir lib of /lib/modules/6.9.12-200.fc40.x86_64/kernel/drivers/acpi/: Not a directory
Error unpacking rpm package kernel-modules-6.9.12-200.fc40.x86_64
Installing : kernel-6.9.12-200.fc40.x86_64 4/4
error: unpacking of archive failed on file /lib/modules/6.9.12-200.fc40.x86_64/kernel/drivers/acpi/video.ko.xz;66af085d: cpio: open failed - Not a directory
error: kernel-modules-6.9.12-200.fc40.x86_64: install failed
Installed:
kernel-6.9.12-200.fc40.x86_64
Failed:
kernel-core-6.9.12-200.fc40.x86_64 kernel-modules-6.9.12-200.fc40.x86_64 kernel-modules-core-6.9.12-200.fc40.x86_64
Error: Transaction failed
ll /lib/modules/ 1 ↵
total 4.0K
drwxr-xr-x. 9 root root 4.0K Jul 19 00:54 6.9.9-200.fc40.x86_64