Ubuntu 22.04:疯狂的内核更新

Ubuntu 22.04:疯狂的内核更新

今天我像往常一样启动了我的 Ubuntu 22.04,并且软件更新工具要求我安装/更新非常旧的内核。此外,它还安装了 6.1.0-oem。

为什么?

截屏

编辑GUIVERC

进入 APT 日志(/var/log/apt/*-gz)我看到唯一的安装是官方的 5.19.0-46.generic(Ubuntu 22.04 Gnome)。

软件更新管理器目前向我展示上面截图中的包裹。

以下是我的/boot文件夹内容:

drwxr-xr-x  4 root root     4096 lug  1 10:22 .
drwxr-xr-x 22 root root     4096 mag 19 21:03 ..
-rw-r--r--  1 root root   270051 giu  7 16:23 config-5.19.0-45-generic
-rw-r--r--  1 root root   270051 giu 21 16:38 config-5.19.0-46-generic
drwx------  4 root root     4096 gen  1  1970 efi
drwxr-xr-x  6 root root     4096 lug  1 10:19 grub
lrwxrwxrwx  1 root root       28 lug  1 09:39 initrd.img -> initrd.img-5.19.0-45-generic
-rw-r--r--  1 root root 37572599 lug  1 09:39 initrd.img-5.19.0-45-generic
-rw-r--r--  1 root root 71440610 giu 30 13:04 initrd.img-5.19.0-46-generic
lrwxrwxrwx  1 root root       28 lug  1 10:19 initrd.img.old -> initrd.img-5.19.0-46-generic
-rw-r--r--  1 root root   182800 feb  6  2022 memtest86+.bin
-rw-r--r--  1 root root   184476 feb  6  2022 memtest86+.elf
-rw-r--r--  1 root root   184980 feb  6  2022 memtest86+_multiboot.bin
-rw-------  1 root root  6438389 giu  7 16:23 System.map-5.19.0-45-generic
-rw-------  1 root root  6438424 giu 21 16:38 System.map-5.19.0-46-generic
lrwxrwxrwx  1 root root       25 lug  1 09:39 vmlinuz -> vmlinuz-5.19.0-45-generic
-rw-------  1 root root 12221544 giu  7 16:23 vmlinuz-5.19.0-45-generic
-rw-------  1 root root 12220712 giu 21 16:43 vmlinuz-5.19.0-46-generic
lrwxrwxrwx  1 root root       25 lug  1 10:19 vmlinuz.old -> vmlinuz-5.19.0-46-generic

我怀疑软件管理工具因为通过 apt cli,以下是唯一建议的升级:

 ~ $ apt list --upgradable 
Listing... Done
libnvidia-cfg1-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-common-530/jammy-updates,jammy-updates 535.54.03-0ubuntu0.22.04.1 all [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-compute-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-compute-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 i386 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-decode-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-decode-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 i386 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-encode-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-encode-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 i386 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-extra-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-fbc1-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-fbc1-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 i386 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-gl-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
libnvidia-gl-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 i386 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
linux-modules-nvidia-530-generic-hwe-22.04/jammy-updates 5.19.0-46.47~22.04.1+2 amd64 [upgradable from: 5.19.0-46.47~22.04.1]
linux-signatures-nvidia-5.19.0-46-generic/jammy-updates 5.19.0-46.47~22.04.1+2 amd64 [upgradable from: 5.19.0-46.47~22.04.1]
nvidia-compute-utils-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
nvidia-driver-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
nvidia-kernel-common-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
nvidia-kernel-source-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
nvidia-utils-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]
xserver-xorg-video-nvidia-530/jammy-updates 535.54.03-0ubuntu0.22.04.1 amd64 [upgradable from: 530.41.03-0ubuntu0.22.04.2]

答案1

我使用以下命令删除了 6.1 内核,这使一切恢复正常,即 5.19 内核。

sudo apt remove linux-image-6.1.0-1015-oem linux-image-unsigned-6.1.0-1015-oem

由于某种原因,我需要这两个包名称,否则如果我仅删除 linux-image-6.1.0-1015-oem,apt 会指示它将安装 linux-image-unsigned-6.1.0-1015-oem。

我仍然遇到一个问题,即附加驱动程序 UI 现在显示我正在运行针对 NVidia 1060 的手动安装的驱动程序。

答案2

我也遇到了奇怪的内核安装问题,但我停止了安装,重启后,软件升级工具弹出,我确认了这一点。这是修复它的第一步:

sudo apt dist-upgrade 

之后,我获得了新的内核 6.1.0-1015-oem,之前是 5.15.x“通用”内核。但 Nvidia 驱动程序和 Virtualbox 等内核相关软件不再起作用。

sudo dkms autoinstall

重新启动后问题就解决了。(也许 Nvidia 驱动程序需要重新安装一次。我确实重新安装了,因为当它不工作时我删除并清除了它。)

相关内容