I am trying to deal with a problem on a server I don't normally deal with. Out of the blue a script using ppp started failing saying that the ppp kernel module is not loaded. When I try to modprobe it it complains about files missing. Note below that the kernel version the server thinks it at, does not match the kernel version directory in /lib/modules. I'm not sure how this could have happened. Could the other maintainers of the server botched a kernel upgrade?

My question is how can I fix this discrepancy. Can I simply rename the lib directory and hope for the best? I don't want to break stuff for the people who actually maintain the server but I do need to fix the PPP issue.

$ sudo /sbin/modprobe -v ppp
FATAL: Could not load /lib/modules/ No such file or directory

$ cat /proc/version 
Linux version (root@builder.slicehost.com) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #8 SMP Mon Sep 20 15:54:33 UTC 2010

$ ls /lib/modules/

First thing to try would be to obtain the modules for the running kernel from those other guys. Also, it might to find out what the versions of the already loaded modules are. Maybe this is a VM? (Xen? OpenVZ?) Then it might have been supplied a kernel + initrd from the host which would explain how it even came up with a incompletely installed kernel.

And you can feel lucky and try to use insmod (doesn't do dependencies) on the ppp module from the older kernel version.

  • I'm not that lucky here. 'Other guys' have no idea. They say they did not upgrade anything. I'm cleaning up someone else's mess. the rscloud kernel suffix suggests its a RackSpace cloud server... Thing is it was all fine until about a month ago. They say they only changed domain names. – Harel Apr 7 '12 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.