1. Review the kernel commands that need to be updated:
Apt-cache Search Linux
The command will show all the kernels that can be obtained
2. Install the kernel, assuming you want to install a kernel of 2.6.39-0, use the following command
sudo apt-get install linux-headers-2.6.39-0-generic linux-image-2.6.39-0-generic
After installation, reboot can, after reboot, both start with the new kernel
===============================================================
If you want to switch back to the original kernel, for example, 3.2, use the command first
1. grep menuentry /boot/grub/grub.cfg
This command displays the order of the kernel, for example, shown as:
Menuentry ' Ubuntu, with Linux 3.2.17experimental '--class Ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubun Tu, with Linux 3.2.17experimental (recovery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubu NTU, with Linux 3.2.17-chipsee '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2 .17-chipsee (Recovery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2.0- 23-generic '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2.0-23-generic (Recov ery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry "Memory Test (memtest86+)" {menuentry "Memor Y Test (memtest86+, serial console 115200) "
2. If you want to start with the 3.2.17 kernel version,/etc/default/grub the file in the
Grub_default=0
Switch
grub_default=2 after saving
3. Then use the command sudo update-grub
4.重启后,使用命令uname -a查看,内核即为你想要的内核
Ubuntu Update kernel switch kernel boot