Running into issues with moddep/depmod

Linode Staff

I found the following errors in my logs after performing an update:

could not open moddep file '/lib/modules/4.15.8-x86_64 linode103/modules.dep.bin

Running depmod also produces the following error:

depmod: WARNING: could not open /lib/modules/4.15.8-x86_64 linode103/modules.order: No such file or directory

Is there a missing module in Linode's Debian repo?

5 Replies

These errors indicate your kernel is not compatible with the modules you're trying to run. If Linode's kernels do not contain the modules you need then you'll need to run your Linode on a distribution supplied kernel.

The following guide covers how to accomplish that: Distribution Supplied Kernels

mkdir /lib/modules/`uname -r`;
depmod -a

should make that warning go away.

i have the same issues, and it seems to be preventing my iptables-restore and ufw from starting properly on reboot….at least, that's what led me to realizing i have this issue. note that i can't mkdir the directory as caker recommends, because it already exists, and i can't "depmod -a" because I get the errors like dsmith posts.

I'm also getting hit by this one. caker's suggestion doesn't work. Is there a solution that doesn't involve using distribution kernels?

Screenshot

# 
# uname -r
4.18.16-x86_64-linode118
# modprobe overlay
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.18.16-x86_64-linode118/modules.dep.bin'
modprobe: FATAL: Module overlay not found in directory /lib/modules/4.18.16-x86_64-linode118
# ls -l /lib/modules/$( uname -r )
total 0
-rw-r--r-- 1 root root 0 Nov  7 12:11 modules.dep
# depmod -a
depmod: WARNING: could not open /lib/modules/4.18.16-x86_64-linode118/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.18.16-x86_64-linode118/modules.builtin: No such file or directory
# ls -l /lib/modules/$( uname -r )
total 28
-rw-r--r-- 1 root root 45 Nov 14 16:07 modules.alias
-rw-r--r-- 1 root root 12 Nov 14 16:07 modules.alias.bin
-rw-r--r-- 1 root root  0 Nov 14 16:07 modules.builtin.bin
-rw-r--r-- 1 root root  0 Nov 14 16:07 modules.dep
-rw-r--r-- 1 root root 12 Nov 14 16:07 modules.dep.bin
-rw-r--r-- 1 root root 52 Nov 14 16:07 modules.devname
-rw-r--r-- 1 root root 55 Nov 14 16:07 modules.softdep
-rw-r--r-- 1 root root 49 Nov 14 16:07 modules.symbols
-rw-r--r-- 1 root root 12 Nov 14 16:07 modules.symbols.bin
# modprobe overlay
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.18.16-x86_64-linode118/modules.builtin.bin'
modprobe: FATAL: Module overlay not found in directory /lib/modules/4.18.16-x86_64-linode118
# 

See also https://www.linode.com/community/questions/17114/docker-wont-start-using-the-latest-linode-kernel#answer-67343 about the missing overlay module.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct