Ubuntu – How to install an old kernel

aptkernel

I am running an instance of Ubuntu 15.10. I need to install the latest kernel used by Ubuntu 14.10, which I think is 3.16.0-28-generic. Entering sudo apt-get install linux-image-3.16.0-28-generic returns an error message stating that it's not available and may have been obsoleted or whatever. I think if I add something to sources.list it will be able to get it. But what do I add to it?

And before anyone goes on about the troubles this may produce, it doesn't matter to me.

Best Answer

In Ubuntu, use browser to navigate to > http://kernel.ubuntu.com/~kernel-ppa/mainline/ Scroll to the bottom of the list; choose your kernel. Download the following files (xxxxxx will be replaced with numbers indicating the kernel version. Assuming you have a 64bit OS):

linux-headers-xxxxxx-generic-xxxxxx_amd64.deb

linux-headers-xxxxxx_all.deb

linux-image-xxxxxx-generic-xxxxxx_amd64.deb

Move all these files to a folder. cd into it. Install all these packages by running

sudo dpkg -i *.deb

Choose new kernel from grub menu.

Update: Since its an ubuntu instance you can manually get the links and and use wget to download the packages

Related Question