4

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, 2021 at 13:52

1 Answer 1

4

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

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .