Question

Ubuntu 14.04 using a 15.04 kernel

Hello, I have changed the default kernel come with Ubuntu 14.04 to a 15.04 kernel version. First of all I don’t know if this is allowed to do as when I did it, the 15.04 kernel was in the list.

I didn’t encounter problems until I am trying to configure the firewall. When I issue the command “ufw status”, I get error

modprobe: ERROR: …/libkmod/libkmod.c:556 kmodsearchmoddep() could not open moddep file '/lib/modules/3.16.0-23-generic/modules.dep.bin

found also in this thread.

I tried sudo apt-get install linux-image-$(uname -r) then I get E: Unable to locate package linux-image-3.19.0-16-generic

Should I do sudo apt-get install --reinstall linux-image-3.13.0?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I would like to move to 15.04 so I can run kernel updates via apt-get. What is the easiest way to do this on DigitalOcean? Not being able to update at terminal is a huge pain. Thanks for any tips.

ufw is outputting an error because it can’t load the necessary kernel modules to run a firewall. You need to install the currently-running kernel’s modules on your droplet which is done by running sudo apt-get install linux-image-$(uname -r).

Because you’re trying to use a 15.04 kernel on a 14.04 system, that command won’t work because the kernel package does not exist in 14.04’s repositories.

Generally, you should be fine running the latest kernel that is available in 14.04’s repositories as it is an “LTS” (long-term support) release, which means that it will keep receiving security updates until April, 2019.