When I give in the terminal the command "sudo apt-get install linux-image" I see a list of kernels. How can I install such a kernel and what command should I give in the terminal to start a kernel??
4 Answers
How can I install such a kernel?
If you supply the package version etc it should install that version
sudo apt-get install linux-image-3.13.0-24-generic
If for some reason you want to install loads of kernel, note that if you have a /boot
partition, or a small root one you will likely run out of disk space, so the system won't boot.
Also, if you want to use a particular driver which only works with a certain kernel version, please make a question relevant to this
What command should I give in the terminal to start a kernel?
Kernels are the base part of system, so generally you need to reboot to change what is running at the core (probably not with linux kernel 4+ on some OSs with some updates though).
So change which kernel you are using you can reboot and show GRUB, then you can select to use the kernel - (The nearest command is sudo reboot
which will reboot the system). By default it will choose the latest one (usually recomended for security stuff)
See also:
Seems as this command works:
sudo apt install linux-image-5.19-0-21-generic=5.19.0-21.21
Should be "=" between name of package and version.

- 101
I use the following command in the terminal
sudo apt install linux-image-6.1.0-1008-oem linux-headers-6.1.0-1008-oem
That is for 6.1 kernel. For another kernel you have to modify the command consequently.

- 611
- 8
- 18
Install by selecting your choice from the list by using select/copy. Then past your choice (using the copy/paste method to get it spelled correctly) into the apt-get install command:
Example:
$ sudo apt-get install linux-image-3.19.0-30-generic 3.19.0-30.34
You can choose the kernel by clicking on Advinced Options for Ubuntu
then move your arrow up or down for the kernel of your choice.
When you have a kernel that you are comfortable with you can edit your /boot/grub/grub.cfg (copying and pasting to ensure you have it spelled correctly) to use your preferred kernel.

- 25,036
sudo apt-get install linux-generic
on a LTS "point" version will install an older kernel, etc. – Pilot6 Oct 12 '15 at 23:36