By mike611237
Originally, I was currently trying to install UFW for security reasons on my WebServer (Which was originally running Ubuntu 12.04.x x64 vmlinuz-3.8.0-37-generic), following this guide here:
Basically, I did a “sudo apt-get install ufw”, and when I type “ufw status” the message I had received is as follows:
“ERROR: problem running iptables: FATAL: Could not load /lib/modules/3.8.0-37-generic/modules.dep: No such file or directory … ip tables v1.4.12: can’t initialize iptables table ‘filter’: Table does not exist … Perhaps iptables or your kernel needs to be upgraded.”
Currently, I’ve reverted to Ubuntu 12.04.x x64 vmlinuz-3.2.0-60-virtual, and it now functions as it should (As I did a “ls /lib/modules/” and found the modules currently installed). Is there a way I can install modules/etc for Ubuntu 12.04.x x64 vmlinuz-3.8.0-37-generic, so UFW works on that kernel? (I’m new to this, so I’m not too familiar with the differences between some kernels).
Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you very much for the reply! <br>Though, to install the modules for the image I was currently using, I used: <br> <br>sudo apt-get install linux-image-$(uname -r) <br> <br>…But there is a still a problem remaining. <br> <br>The module install worked great, though when I type “ufw status” after installing ufw, this message shows up (It’s slightly different from my post above): <br> <br>---------------- <br>ERROR: problem running iptables: FATAL: Error inserting ip_tables (/lib/modules/3.8.0-38-generic/kernel/net/ipv4/netfilter/ip_tables.ko): Invalid module format <br>iptables v1.4.12: can’t initialize iptables table ‘filter’: Table does not exist (do you need to insmod?) <br>Perhaps iptables or your kernel needs up be upgraded." <br>---------------- <br> <br>My current kernel is 3.8.0-38-generic, and there does exist a folder now for it in /lib/modules. <br> <br>PS: Is there a large difference between “generic” and “virtual”?
So after some research and relating to my above question, I discovered that when I run the command “lsmod”, the only thing I currently see listed is “floppy”. There are no other modules loaded, which is probably the problem. <br> <br>What would be the safest way to load all (or just the necessary) modules? <br> <br>
Yes. I’ve rebooted my droplet. The only module showing up is “floppy” after a reboot.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.