Blue Flower

Canonical 已于昨日(2022.09.01)发布了 Ubuntu 22.04.5,除了常规更新,重点带来了内核版本的升级。

Linux Kernel 5.15 LTS 是 Ubuntu 22.04 的内置内核版本,现在已经来到了 Ubuntu 20.04 中。

下载 Ubuntu 22.04.5:Ubuntu 20.04 LTS (Focal Fossa)

Linux Kernel 5.15 New Features

Linux 内核 5.15 有许多新的功能、硬件支持和安全更新。Linux 内核 5.15 进一步改善了AMD CPU 和 GPU 的支持, 支持 Intel 第 12 代 CPU,改善了对 Apple M1 的支持,并带来了新的功能,如 NTFS3,in-kernel SMB3 (ksmbd)。

以下是改进和功能摘要:

  • AMD RDNA2 Graphics card initial support.
  • New “NTFS3” driver.
  • temperature monitoring support for AMD Zen 3 based APUs.
  • Improved Apple M1 IOMMU driver
  • New Wifi driver support
  • In-kernel SMB file server

Update Operating System

本例使用的是 20.04 原始版本:

1
2
$ uname -a
Linux u20 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

更新 Ubuntu 操作系统已经所有软件包:

1
2
3
4
5
6
# 更新 repo 列表
sudo apt update
# 升级系统和软件(可选)
sudo apt upgrade -y
# 重启
sudo reboot

更新后为 20.04.5

1
2
3
4
5
6
7
8
9
$ uname -a
Linux u20 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

Installing Linux Kernel 5.15

现在开始升级 Linux Kernel 5.15。

Install kernel-generic:通用内核,一般 PC 及 Server

1
2
3
4
5
6
7
8
9
10
11
# 列出可用的 5.15 内核版本
apt list linux-headers-5.15.*-*-generic linux-image-5.15.*-*-generic

# 以下将安装所有的 5.15 版本,一般不用
sudo apt install linux-headers-5.15.*-*-generic linux-image-5.15.*-*-generic

# 指定版本即可,比如当前为 5.15.0-46
sudo apt install linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic

# 重启后生效
sudo reboot

Install low-latency kernel:低延迟内核,适用于工业嵌入式系统(Industrial embedded systems)

1
2
apt list linux-headers-5.15.*-*-lowlatency linux-image-5.15.*-*-lowlatency
# generic 替换为 lowlatency,其他安装方法一样,不再赘述

示例输出如下 (kernel-generic):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$ sudo apt install linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
linux-hwe-5.15-headers-5.15.0-46 linux-modules-5.15.0-46-generic
Suggested packages:
fdutils linux-doc | linux-hwe-5.15-source-5.15.0 linux-hwe-5.15-tools linux-modules-extra-5.15.0-46-generic
The following NEW packages will be installed:
linux-headers-5.15.0-46-generic linux-hwe-5.15-headers-5.15.0-46 linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.6 MB of archives.
After this operation, 233 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 linux-hwe-5.15-headers-5.15.0-46 all 5.15.0-46.49~20.04.1 [12.0 MB]
Get:2 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 linux-headers-5.15.0-46-generic amd64 5.15.0-46.49~20.04.1 [2,776 kB]
Get:3 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 linux-modules-5.15.0-46-generic amd64 5.15.0-46.49~20.04.1 [20.5 MB]
Get:4 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 linux-image-5.15.0-46-generic amd64 5.15.0-46.49~20.04.1 [11.3 MB]
Fetched 46.6 MB in 2min 46s (281 kB/s)
......
done

可以根据提示删除不再需要的软件包(旧版内核):sudo apt autoremove

ubuntu-2004-upgrade-kernel

恭喜,升级成功!

下载仅供下载体验和测试学习,不得商用和正当使用。

下载体验

请输入密码查看内容!

如何获取密码?

 

点击下载