I'm receiving boot errors about kernel modules not being found. How can I fix the issue?
Linode
Linode Staff
I'm running Ubuntu 16.04
Error output:
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.1.11-x86_64-linode127/modules.dep.bin'
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/5.1.11-x86_64-linode127
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.1.11-x86_64-linode127/modules.dep.bin'
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/5.1.11-x86_64-linode127
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.1.11-x86_64-linode127/modules.dep.bin'
Aug 6 00:00:13 hostname ufw-init[615]: modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/5.1.11-x86_64-linode127
1 Reply
_Brian
Linode Staff
Those errors you're seeing are a result of UFW being unable to locate the kernel modules it is looking for. This is usually due to a recent kernel upgrade, and can most often be corrected by rebooting your Linode.
You can also correct the issue by disabling the features of UFW that are not supported by the kernel. You can navigate to /etc/default/ufw
and put a # in front of the line beginning with IPT_MODULES=
in order to comment it out. Once you've edited the configuration file, you can run sudo ufw reload
to reload the new config.
Edit: I also wanted to make you aware that you can Boot to GRUB2 in order to load a distributor-released or customer kernel that can contain any modules you want included.