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.
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):
Move all these files to a folder. cd into it. Install all these packages by running
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
If you want the official Ubuntu stock kernel (not a mainline kernel) from an unsupported version, see below.
For differences between Mainline and Stock kernels see https://askubuntu.com/a/91374/555474
I had to install an even older kernel (2.6.32.21-generic) for stock modules to work with a custom kernel. No hardware was working, so I had to download manually.
Here is how to obtain the discontinued kernels manually from http://old-releases.ubuntu.com/ubuntu/
Essentially you will need the kernel's headers for your processor, common (all) headers, and the kernel image for your processor.
In the steps below, replace
x.x.xx-xx
with your kernel version andamd64
with your processor type. Note this is for the generic kernel and not using extra features such as PAE.Go to http://old-releases.ubuntu.com/ubuntu/pool/main/l/linux/ (I believe this lists most if not all the old kernel packages)
headers-x.x.xx-xx-generic
and download theIn the page CTRL+F find
image-x.x.xx-xx-generic
and download thePut all of these packages in a folder alone, and from that folder (
cd
into it) runsudo dpkg -i *.deb
If you know the exact version you want, e.g. 5.4.0-26-generic, just run
The dependencies will be installed automatically. Then in the next boot, select it in the grub menu.
The easiest way is to install Ubuntu Mainline Kernel Installer.
In terminal type the following commands:
see screenshot:
.
It is Gui-based and very easy to use to add and remove mainline (hence the name) kernels.