问题原文
原帖链接 · Joe · CC BY-SA 4.0
There are lots of questions pertaining this error, and there is a suggested manual fix which works well, but there's no permanent solution. How can i permanently solve this? Im having this issue on a debian wheezy server, using OpenVPN client to connect to an OpenVPN server.
The suggested fix is the one below. Seems like, /dev/net is not automatically created and of course disappears on each reboot.
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
社区高分解答
原帖链接 · Yaron · CC BY-SA 4.0
It happens in Arch/Manjaro as well.
I managed to figure out the problem, apparently a kernel upgrade is simply moving the modules directory, so trying to reach the modules from their known location is unavailable, the current running kernel is still running but I can't seem to modprobe (load) any modules which are not already loaded (such as tun required for OpenVPN connections).
So for example, the /lib/modules/ directory had the following directories before the upgrade (I have multiple kernels, notice the 5.16 series):
5.15.32-1-MANJARO *5.16.14-1-MANJARO* extramodules-5.15-MANJARO extramodules-5.16-MANJARO
And this is the status after the upgrade:
5.15.32-1-MANJARO *5.16.18-1-MANJARO* extramodules-5.15-MANJARO extramodules-5.16-MANJARO
Trying to load the tun modules shows the following message:
modprobe: FATAL: Module tun not found in directory /lib/modules/5.16.14-1-MANJARO
Which perfectly makes sense as this directory doesn't exist.
So, what is my proposed solution in this case? A restart.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
