在 Ubuntu 上,我在使用一个新内核 ( 4.18.0-20
) 时遇到了一些问题,所以我在一个旧内核 ( ) 上重新启动4.18.0-15
。
现在我想卸载新内核以防止任何混淆,但这样做是apt
为了安装更新的内核:
apt -s remove linux-image-4.18.0-20-generic
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-generic-hwe-18.04 linux-headers-4.18.0-21
linux-headers-4.18.0-21-generic linux-headers-generic-hwe-18.04
linux-image-4.18.0-21-generic linux-image-generic-hwe-18.04
linux-modules-4.18.0-21-generic linux-modules-extra-4.18.0-21-generic
The following packages will be REMOVED:
linux-image-4.18.0-20-generic linux-modules-extra-4.18.0-20-generic
The following NEW packages will be installed:
linux-headers-4.18.0-21 linux-headers-4.18.0-21-generic linux-image-4.18.0-21-generic
linux-modules-4.18.0-21-generic linux-modules-extra-4.18.0-21-generic
The following packages will be upgraded:
linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04 linux-image-generic-hwe-18.04
所以apt
想要安装内核4.18.0-21
,因为它删除了4.18.0-20
.
我该如何解释这不是我想要的?
问题来自
linux-image-generic-hwe-18.04
包正是这一个带来了混乱。
解决方案:将其删除并安装
linux-image-generic
:linux-headers*
如果需要,可以对包进行同样的操作。如果要将内核设置为特定的,可以手动安装,例如