When I run lsmod
or sudo lsmod
, I get an error that says:
libkmod: ERROR ../libkmod/libkmod-module.c:1655 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
I searched on a lot of forums but am unable to find a solution for this. I'm running Debian on Windows Subsystem for Linux.
I was recently also trying to edit the sysctl.conf
file for the purpose of disabling ipv6. I had added the following lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
And when I tried sudo sysctl -p
, it returned this error:
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory
sysctl: cannot stat /proc/sys/net/ipv6/conf/default/disable_ipv6: No such file or directory
sysctl: cannot stat /proc/sys/net/ipv6/conf/lo/disable_ipv6: No such file or directory
I'm not sure if the above 2 errors are connected. I was trying to run Linux shell on Windows. Any solution to the problem?