2

I removed kernel modules installed with rpm using yum remove kmodname. The *.ko was located under /lib/modules/$(uname -r)/extra/.

I run depmod -a and I get depmod: ERROR: fstatat(4, kmodname.ko.xz): No such file or directory

How can I force depmod to update its database?

1
  • 1
    Same thing can happen in some situations after dkms uninstall, FYI for anyone coming across this.
    – cyqsimon
    Nov 12 '21 at 13:52
2

Most likely you have symlinks, probably under one of your kernels' weak-modules, pointing at modules that have been deleted.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.