3

在Ubuntu中升级Linux内核

 2 years ago
source link: https://blog.kuangjux.top/2021/10/27/%E5%9C%A8Ubuntu%E4%B8%AD%E5%8D%87%E7%BA%A7Linux%E5%86%85%E6%A0%B8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
KuangjuX(狂且)

在Ubuntu中升级Linux内核

Created2021-10-27|Updated2021-10-27|技术
Post View:32

为了使用 Linux 中的 io_uring 特性,我将 Ubuntu 18.04 中的内核进行升级。

首先访问 Ubuntu内核网址 然后选择我们需要升级的 linux 内核版本,在这里我们选择最新的稳定的 linux 内核的版本,然后进入网页:,可以看到如下页面:

注意到 linux 内核分为通用版和低延迟版,这里我们选择通用版进行安装,执行一下命令:

shell
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14/amd64/linux-headers-5.14.0-051400-generic_5.14.0-051400.202108292331_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14/amd64/linux-headers-5.14.0-051400_5.14.0-051400.202108292331_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14/amd64/linux-image-unsigned-5.14.0-051400-generic_5.14.0-051400.202108292331_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14/amd64/linux-modules-5.14.0-051400-generic_5.14.0-051400.202108292331_amd64.deb

随后进入下载的目录,执行以下命令:

shell
sudo dpkg -i *.deb

执行成功后重启:

shell
reboot

当进入之后使用 uname -sr 查看内核版本,查看是否为安装的内核版本


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK