Ubuntu update kernel switch kernel startup, ubuntu update kernel Switch
1. view the kernel commands to be updated:
Apt-cache search linux
This command will display all available kernels
2. Run the following command to install the kernel: 2.6.39-0.
Sudo apt-get install linux-headers-2.6.39-0-generic linux-image-2.6.39-0-generic
After installation, reboot is enabled. After restart, It is started with a new kernel.
========================================================== ======================================
If you want to switch back to the original kernel, for example, the original kernel is 3.2, use the command first.
1. grep menuentry /boot/grub/grub.cfg
This command displays the kernel sequence, for example:
menuentry 'Ubuntu, with Linux 3.2.17experimental' --class ubuntu --class gnu-linux --class gnu --class os {menuentry 'Ubuntu, with Linux 3.2.17experimental (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {menuentry 'Ubuntu, 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 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {menuentry "Memory test (memtest86+)" {menuentry "Memory test (memtest86+, serial console 115200)"
2. If you want to start with the 3.2.17 kernel version
GRUB_DEFAULT = 0
Change
GRUB_DEFAULT = 2 after saving
3. Run the sudo update-grub command.
4. After the restart, run the command uname-a to view the desired kernel.