![Ubuntu 22.04。升级会安装新的 linux-headers 等。它们是必要的吗?](https://linux22.com/image/1187085/Ubuntu%2022.04%E3%80%82%E5%8D%87%E7%BA%A7%E4%BC%9A%E5%AE%89%E8%A3%85%E6%96%B0%E7%9A%84%20linux-headers%20%E7%AD%89%E3%80%82%E5%AE%83%E4%BB%AC%E6%98%AF%E5%BF%85%E8%A6%81%E7%9A%84%E5%90%97%EF%BC%9F.png)
我试了一下sudo apt update
,它说有些东西需要升级,所以我试了一下upgrade
,输出如下。它说将安装以下新软件包,并将使用额外的 560MB。如果它们是“新的”而不是“升级的”,那么为什么它要安装新软件包,而我只是想更新系统?
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-5.15.0-30 linux-headers-5.15.0-30-generic
linux-image-5.15.0-30-generic linux-modules-5.15.0-30-generic
linux-modules-extra-5.15.0-30-generic
The following packages will be upgraded:
apport libldap-2.5-0 libldap-common libpcre3 libssl3 libxml2 linux-firmware
linux-generic linux-headers-generic linux-image-generic needrestart openssl
python3-apport python3-problem-report python3-software-properties
software-properties-common
16 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 351 MB/352 MB of archives.
After this operation, 559 MB of additional disk space will be used.
Do you want to continue? [Y/n]
答案1
当前安装的软件包linux-generic
、linux-headers-generic
等正在升级。
升级的一部分涉及安装新版本的内核。名称为 的软件包linux-image-5.15.0-30-generic
与新版本的内核一起提供。