Hya
System Debian amd64 trixie
situation As title reads, kernel does not install.
How it happened After dist upgrade, make oldconfig, kernel compiles, modules installed, it happened. Error message says that some modules do not install.
Troubleshooting Tracing error messages, trouble starts with
SUBDIRS, then it turned out that rts_pstor.ko is to blame.
It is not under kernel source, it is RealTek card reader driver, several years old.
Solution Remove rts_pstor/* under /var/lib/dkms/ . Also enable kernel option under Device driver -> staging driver -> RealTek...
So far, good.
I have no idea why I did not run into this with previous kernel, 5.18.14, where SUBDIRS is removed.
cheers