Ubuntu 14.04 using a 15.04 kernel

June 1, 2015 2k views

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?

2 Answers

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.

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.

Have another answer? Share your knowledge.