zhangguanzhang's Blog

proxmox 7.4 升级8 后开机卡在 Loading kernel 6.2.16-15

字数统计: 3.7k阅读时长: 20 min
2023/10/20

proxmox 7.4 升级 8 后开机卡住的一次解决过程

由来

最开始在 7.2 dist-upgrade 后升级到 7.4 然后按照官方文档升级 8 的过程中,最后的 apt 阶段报错 proxmox-xxx 和 kernel Sub-process /usr/bin/dpkg returned an error code

处理过程

升级完成后重启卡在 Loading kernel 6.2.16-15,然后重启后切到老内核,进去看了下

1
2
3
4
5
6
7
8
9
$ grep -P 'menuentry.+pve' /boot/grub/grub.cfg 
menuentry 'Proxmox VE GNU/Linux, with Linux 6.2.16-15-pve' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.16-15-pve-advanced-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 6.2.16-15-pve (recovery mode)' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.16-15-pve-recovery-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.15.126-1-pve' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.126-1-pve-advanced-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.15.126-1-pve (recovery mode)' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.126-1-pve-recovery-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.4.203-1-pve' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.203-1-pve-advanced-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.4.203-1-pve (recovery mode)' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.203-1-pve-recovery-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.4.34-1-pve' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.34-1-pve-advanced-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {
menuentry 'Proxmox VE GNU/Linux, with Linux 5.4.34-1-pve (recovery mode)' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.34-1-pve-recovery-bcdbdabd-1b22-41df-a6a7-bef0e7fd8e52' {

看着是内核几个 dpkg 包安装阶段有问题,然后查询下:

1
2
3
4
5
6
7
8
9
$ dpkg -l | grep pve-ker
ii pve-firmware 3.8-2 all Binary firmware code for the pve-kernel
ii pve-kernel-5.15 7.4-7 all Latest Proxmox VE Kernel Image
ii pve-kernel-5.15.126-1-pve 5.15.126-1 amd64 Proxmox Kernel Image
ii pve-kernel-5.15.60-1-pve 5.15.60-1 amd64 Proxmox Kernel Image
ii pve-kernel-5.4 6.4-20 all Latest Proxmox VE Kernel Image
ii pve-kernel-5.4.203-1-pve 5.4.203-1 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-5.4.34-1-pve 5.4.34-2 amd64 The Proxmox PVE Kernel Image
rc pve-kernel-helper 7.2-12 all Function for various kernel maintenance tasks.

手动安装下 kernel :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
$ apt install pve-kernel-6.2.16-15-pve-1
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
E: 无法定位软件包 pve-kernel-6.2.16-15-pve-1
E: 无法按照 glob ‘pve-kernel-6.2.16-15-pve-1’ 找到任何软件包
$ apt install pve-kernel-6.2.16-15*
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
注意,根据Glob 'pve-kernel-6.2.16-15*' 选中了 'pve-kernel-6.2.16-15-pve'
注意,选中 'proxmox-kernel-6.2.16-15-pve' 而非 'pve-kernel-6.2.16-15-pve'
proxmox-kernel-6.2.16-15-pve 已经是最新版 (6.2.16-15)。
proxmox-kernel-6.2.16-15-pve 已设置为手动安装。
下列软件包是自动安装的并且现在不需要了:
caribou dctrl-tools docker-scan-plugin endeavour endeavour-common g++-10 gedit gedit-common gedit-plugin-bookmarks gedit-plugin-bracket-completion gedit-plugin-character-map gedit-plugin-code-comment gedit-plugin-color-picker
gedit-plugin-color-schemer gedit-plugin-draw-spaces gedit-plugin-git gedit-plugin-join-lines gedit-plugin-multi-edit gedit-plugin-session-saver gedit-plugin-smart-spaces gedit-plugin-synctex gedit-plugin-terminal
gedit-plugin-text-size gedit-plugin-word-completion gedit-plugins gedit-plugins-common giblib1 gir1.2-amtk-5 gir1.2-caribou-1.0 gir1.2-champlain-0.12 gir1.2-dazzle-1.0 gir1.2-gdata-0.0 gir1.2-geocodeglib-1.0 gir1.2-gfbgraph-0.2
gir1.2-ggit-1.0 gir1.2-gnomebluetooth-1.0 gir1.2-gtkchamplain-0.12 gir1.2-gucharmap-2.90 gir1.2-gweather-3.0 gir1.2-handy-0.0 gir1.2-rest-0.7 gir1.2-tepl-6 gir1.2-tracker-2.0 gir1.2-vte-2.91 gir1.2-zpj-0.0 gnome-bluetooth
gnome-bluetooth-common gnome-getting-started-docs gnome-online-miners gnome-screenshot gnome-todo guile-2.2-libs libamtk-5-0 libamtk-5-common libappstream-glib8 libatk1.0-data libavfilter7 libavformat58 libavresample4 libbpf0
libcamel-1.2-62 libcaribou-common libcaribou0 libcbor0 libchamplain-0.12-0 libchamplain-gtk-0.12-0 libclang-cpp11 libclang1-11 libcmis-0.5-5v5 libcolord-gtk1 libdazzle-1.0-0 libdazzle-common libdleyna-connector-dbus-1.0-1
libdleyna-core-1.0-5 libdns-export1110 libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-25 libedataserverui-1.2-2 libexporter-tiny-perl
libextutils-pkgconfig-perl libfluidsynth2 libfwupdplugin1 libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgeocode-glib0 libgfbgraph-0.2-0 libgit2-1.1 libgit2-1.5 libgit2-glib-1.0-0 libgnome-bluetooth13 libgnome-todo libgs9-common
libgssdp-1.2-0 libgucharmap-2-90-7 libgupnp-1.2-0 libgweather-3-16 libgweather-common libhandy-0.0-0 libhttp-parser2.9 libicu67 libigdgmm11 libilmbase25 libisc-export1105 libjim0.79 libleveldb1d liblibreoffice-java
liblist-moreutils-perl liblist-moreutils-xs-perl libllvm11 liblttng-ust-ctl4 liblttng-ust0 libmalcontent-ui-0-0 libmbedcrypto3 libmbedtls12 libmbedtls14 libmbedx509-0 libmbedx509-1 libmms0 libmozjs-78-0 libmpdec3 libmusicbrainz5-2
libmusicbrainz5cc2v5 libnautilus-extension1a libneon27-gnutls libntfs-3g883 libofa0 libopenexr25 libopts25 liborcus-0.16-0 liborcus-parser-0.16-0 libperl5.32 libpkgconf3 libpod-parser-perl libpoppler102 libpostproc55 libprocps8
libprotobuf23 libpython3.9 libpython3.9-minimal libpython3.9-stdlib libqpdf28 libqrcodegencpp1 libquvi-0.9-0.9.3 libquvi-scripts-0.9 librest-0.7-0 librygel-core-2.6-2 librygel-db-2.6-2 libsgutils2-2 libsrt1.4-gnutls libstdc++-10-dev
libswscale5 libtepl-5-0 libtepl-6-2 libtepl-common libtiff5 libtracker-control-2.0-0 libtracker-miner-2.0-0 libtracker-sparql-2.0-0 libunoloader-java liburing1 libvncserver1 libxmlb1 libzapojit-0.0-0 linux-compiler-gcc-10-x86
linux-headers-5.10.0-26-amd64 linux-headers-5.10.0-26-common linux-kbuild-5.10 lua-bitop lua-expat lua-json lua-socket perl-modules-5.32 pkg-config pkgconf pkgconf-bin pve-headers pve-headers-5.15.60-1-pve python3-ldb python3-talloc
python3.9 python3.9-minimal telnet unattended-upgrades unoconv ure-java
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 6 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 proxmox-kernel-6.2.16-15-pve (6.2.16-15) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
dkms: running auto installation service for kernel 6.2.16-15-pve.
Sign command: /lib/modules/6.2.16-15-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/wireguard/1.0.20210219/6.2.16-15-pve/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.2.16-15-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.2.16-15-pve.postinst line 20.
dpkg: 处理软件包 proxmox-kernel-6.2.16-15-pve (--configure)时出错:
已安装 proxmox-kernel-6.2.16-15-pve 软件包 post-installation 脚本 子进程返回错误状态 2
正在设置 linux-headers-6.1.0-13-amd64 (6.1.55-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-13-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/wireguard/1.0.20210219/6.1.0-13-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-13-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-13-amd64.postinst line 11.
dpkg: 处理软件包 linux-headers-6.1.0-13-amd64 (--configure)时出错:
已安装 linux-headers-6.1.0-13-amd64 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 linux-headers-amd64 的配置工作不能继续:
linux-headers-amd64 依赖于 linux-headers-6.1.0-13-amd64 (= 6.1.55-1);然而:
软件包 linux-headers-6.1.0-13-amd64 尚未配置。

dpkg: 处理软件包 linux-headers-amd64 (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 proxmox-kernel-6.2 的配置工作不能继续:
proxmox-kernel-6.2 依赖于 proxmox-kernel-6.2.16-15-pve;然而:
软件包 proxmox-kernel-6.2.16-15-pve 尚未配置。

dpkg: 处理软件包 proxmox-kernel-6.2 (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 proxmox-default-kernel 的配置工作不能继续:
proxmox-default-kernel 依赖于 proxmox-kernel-6.2;然而:
软件包 proxmox-kernel-6.2 尚未配置。

dpkg: 处理软件包 proxmox-default-kernel (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 proxmox-ve 的配置工作不能继续:
proxmox-ve 依赖于 proxmox-default-kernel;然而:
软件包 proxmox-default-kernel 尚未配置。

dpkg: 处理软件包 proxmox-ve (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
proxmox-kernel-6.2.16-15-pve
linux-headers-6.1.0-13-amd64
linux-headers-amd64
proxmox-kernel-6.2
proxmox-default-kernel
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决

之前安装了 wireguard ,应该是 dkms 冲突了,处理下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
$ dkms status
wireguard/1.0.20210219, 5.4.203-1-pve, x86_64: installed

$ dkms remove wireguard/1.0.20210219
$ apt remove dkms
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
caribou dctrl-tools docker-scan-plugin endeavour endeavour-common g++-10 gedit gedit-common gedit-plugin-bookmarks gedit-plugin-bracket-completion gedit-plugin-character-map gedit-plugin-code-comment gedit-plugin-color-picker
gedit-plugin-color-schemer gedit-plugin-draw-spaces gedit-plugin-git gedit-plugin-join-lines gedit-plugin-multi-edit gedit-plugin-session-saver gedit-plugin-smart-spaces gedit-plugin-synctex gedit-plugin-terminal
gedit-plugin-text-size gedit-plugin-word-completion gedit-plugins gedit-plugins-common giblib1 gir1.2-amtk-5 gir1.2-caribou-1.0 gir1.2-champlain-0.12 gir1.2-dazzle-1.0 gir1.2-gdata-0.0 gir1.2-geocodeglib-1.0 gir1.2-gfbgraph-0.2
gir1.2-ggit-1.0 gir1.2-gnomebluetooth-1.0 gir1.2-gtkchamplain-0.12 gir1.2-gucharmap-2.90 gir1.2-gweather-3.0 gir1.2-handy-0.0 gir1.2-rest-0.7 gir1.2-tepl-6 gir1.2-tracker-2.0 gir1.2-vte-2.91 gir1.2-zpj-0.0 gnome-bluetooth
gnome-bluetooth-common gnome-getting-started-docs gnome-online-miners gnome-screenshot gnome-todo guile-2.2-libs libamtk-5-0 libamtk-5-common libappstream-glib8 libatk1.0-data libavfilter7 libavformat58 libavresample4 libbpf0
libcamel-1.2-62 libcaribou-common libcaribou0 libcbor0 libchamplain-0.12-0 libchamplain-gtk-0.12-0 libclang-cpp11 libclang1-11 libcmis-0.5-5v5 libcolord-gtk1 libdazzle-1.0-0 libdazzle-common libdleyna-connector-dbus-1.0-1
libdleyna-core-1.0-5 libdns-export1110 libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-25 libedataserverui-1.2-2 libexporter-tiny-perl
libextutils-pkgconfig-perl libfluidsynth2 libfwupdplugin1 libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgeocode-glib0 libgfbgraph-0.2-0 libgit2-1.1 libgit2-1.5 libgit2-glib-1.0-0 libgnome-bluetooth13 libgnome-todo libgs9-common
libgssdp-1.2-0 libgucharmap-2-90-7 libgupnp-1.2-0 libgweather-3-16 libgweather-common libhandy-0.0-0 libhttp-parser2.9 libicu67 libigdgmm11 libilmbase25 libisc-export1105 libjim0.79 libleveldb1d liblibreoffice-java
liblist-moreutils-perl liblist-moreutils-xs-perl libllvm11 liblttng-ust-ctl4 liblttng-ust0 libmalcontent-ui-0-0 libmbedcrypto3 libmbedtls12 libmbedtls14 libmbedx509-0 libmbedx509-1 libmms0 libmozjs-78-0 libmpdec3 libmusicbrainz5-2
libmusicbrainz5cc2v5 libnautilus-extension1a libneon27-gnutls libntfs-3g883 libofa0 libopenexr25 libopts25 liborcus-0.16-0 liborcus-parser-0.16-0 libperl5.32 libpkgconf3 libpod-parser-perl libpoppler102 libpostproc55 libprocps8
libprotobuf23 libpython3.9 libpython3.9-minimal libpython3.9-stdlib libqpdf28 libqrcodegencpp1 libquvi-0.9-0.9.3 libquvi-scripts-0.9 librest-0.7-0 librygel-core-2.6-2 librygel-db-2.6-2 libsgutils2-2 libsrt1.4-gnutls libstdc++-10-dev
libswscale5 libtepl-5-0 libtepl-6-2 libtepl-common libtiff5 libtracker-control-2.0-0 libtracker-miner-2.0-0 libtracker-sparql-2.0-0 libunoloader-java liburing1 libvncserver1 libxmlb1 libzapojit-0.0-0 linux-compiler-gcc-10-x86
linux-compiler-gcc-12-x86 linux-headers-5.10.0-26-amd64 linux-headers-5.10.0-26-common linux-headers-6.1.0-13-amd64 linux-headers-6.1.0-13-common linux-headers-amd64 linux-kbuild-5.10 linux-kbuild-6.1 lua-bitop lua-expat lua-json
lua-socket perl-modules-5.32 pkg-config pkgconf pkgconf-bin pve-headers pve-headers-5.15 pve-headers-5.15.126-1-pve pve-headers-5.15.60-1-pve pve-headers-5.4.203-1-pve python3-ldb python3-talloc python3.9 python3.9-minimal telnet
unattended-upgrades unoconv ure-java
使用'apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
dkms wireguard-dkms
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
有 6 个软件包没有被完全安装或卸载。
解压缩后将会空出 1,956 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 347124 个文件和目录。)
正在卸载 wireguard-dkms (1.0.20210219-1) ...
Module wireguard-1.0.20210219 for kernel 5.4.203-1-pve (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

wireguard.ko:
- Uninstallation
- Deleting from: /lib/modules/5.4.203-1-pve/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
Deleting module wireguard-1.0.20210219 completely from the DKMS tree.
正在卸载 dkms (3.0.10-8+deb12u1) ...
正在设置 proxmox-kernel-6.2.16-15-pve (6.2.16-15) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-15-pve
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.2.16-15-pve /boot/vmlinuz-6.2.16-15-pve
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.2.16-15-pve
Found initrd image: /boot/initrd.img-6.2.16-15-pve
Found linux image: /boot/vmlinuz-5.15.126-1-pve
Found initrd image: /boot/initrd.img-5.15.126-1-pve
Found linux image: /boot/vmlinuz-5.15.60-1-pve
Found initrd image: /boot/initrd.img-5.15.60-1-pve
Found linux image: /boot/vmlinuz-5.4.203-1-pve
Found initrd image: /boot/initrd.img-5.4.203-1-pve
Found linux image: /boot/vmlinuz-5.4.34-1-pve
Found initrd image: /boot/initrd.img-5.4.34-1-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
正在设置 linux-headers-6.1.0-13-amd64 (6.1.55-1) ...
正在设置 linux-headers-amd64 (6.1.55-1) ...
正在设置 proxmox-kernel-6.2 (6.2.16-15) ...
正在设置 proxmox-default-kernel (1.0.0) ...
正在设置 proxmox-ve (8.0.2) ...
正在处理用于 man-db (2.11.2-2) 的触发器 ...

发现卸载 dkms 的时候包管理也处理好内核了,然后重启就好了

参考

CATALOG
  1. 1. 由来
    1. 1.1. 处理过程
    2. 1.2. 解决
  2. 2. 参考