Last active
May 8, 2024 18:45
-
-
Save YCmove/1b8fc14503d56845ed98b4b7e1f25a11 to your computer and use it in GitHub Desktop.
Revisions
-
YCmove revised this gist
May 8, 2024 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,24 +29,25 @@ linux-image-6.2.0-25-generic/jammy-updates,jammy-security 6.2.0-25.25~22.04.2 am ## Install the specific kernel ``` sudo apt update sudo apt install linux-image-6.2.0-26-generic ``` ## Optional Only install the headers package if you plan to compile kernel functions by yourself. ``` sudo apt install linux-headers-6.2.0-26-generic ``` If you need extra drivers ``` sudo apt install linux-modules-extra-6.2.0-26-generic ``` ## Switching Kernel at Booting ``` sudo vim /etc/default/grub GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.2.0-26-generic" sudo update-grub sudo reboot ``` -
YCmove created this gist
May 8, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,52 @@ ## Check the current kernel ``` $ dpkg --list 'linux-image-*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=====================================-===================-============-===============================> ii linux-image-6.5.0-18-generic 6.5.0-18.18~22.04.1 amd64 Signed kernel image generic ii linux-image-6.5.0-28-generic 6.5.0-28.29~22.04.1 amd64 Signed kernel image generic ii linux-image-generic-hwe-22.04 6.5.0.28.29~22.04.1 amd64 Generic Linux kernel image un linux-image-unsigned-6.5.0-18-generic <none> <none> (no description available) un linux-image-unsigned-6.5.0-28-generic <none> <none> (no description available) ``` ## Check the apt kernel packages ``` $ apt list --all-versions linux-image* | less linux-image-5.15.0-100-generic/jammy-updates,jammy-security 5.15.0-100.110 amd64 linux-image-5.15.0-101-generic/jammy-updates,jammy-security 5.15.0-101.111 amd64 ... linux-image-6.2.0-25-generic/jammy-updates,jammy-security 6.2.0-25.25~22.04.2 amd64 ``` ## Install the specific kernel ``` sudo apt update sudo apt install linux-image-5.15.0-100-generic ``` ## Optional Only install the headers package if you plan to compile kernel functions by yourself. ``` sudo apt install linux-headers-5.15.0-100-generic ``` If you need extra drivers ``` sudo apt install linux-modules-extra-5.15.0-100-generic ``` ## Switching Kernel at Booting ``` sudo vim /etc/default/grub GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.0.0-23-generic" sudo update-grub ```