我的升级被中断了,现在通过 CLI 运行升级时,出现“错误退出状态:2”和“包安装后脚本子进程返回错误退出状态 1”。
可以启动到内核 5.19。尝试使用 Mainline 安装新内核,但不起作用。
已尝试:cd /tmp 下载最新的稳定内核
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.2.12/amd64/linux-headers-6.2.12-060212_6.2.12-060212.202304201141_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.2.12/amd64/linux-headers-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.2.12/amd64/linux-image-unsigned-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.2.12/amd64/linux-modules-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb
安装最新的稳定内核
sudo dpkg -i *.deb
...但错误消息相同--见下文。
sudo dpkg -i *.deb
(Reading database ... 653860 files and directories currently installed.)
Preparing to unpack linux-headers-6.2.12-060212_6.2.12-060212.202304201141_all.deb ...
Unpacking linux-headers-6.2.12-060212 (6.2.12-060212.202304201141) over (6.2.12-060212.202304201141) ...
Preparing to unpack linux-headers-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb ...
Unpacking linux-headers-6.2.12-060212-generic (6.2.12-060212.202304201141) over (6.2.12-060212.202304201141) ...
Preparing to unpack linux-image-unsigned-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb ...
Unpacking linux-image-unsigned-6.2.12-060212-generic (6.2.12-060212.202304201141) over (6.2.12-060212.202304201141) ...
/var/lib/dpkg/info/linux-image-unsigned-6.2.12-060212-generic.postrm ... removing pending trigger
Preparing to unpack linux-modules-6.2.12-060212-generic_6.2.12-060212.202304201141_amd64.deb ...
Unpacking linux-modules-6.2.12-060212-generic (6.2.12-060212.202304201141) over (6.2.12-060212.202304201141) ...
Setting up linux-headers-6.2.12-060212 (6.2.12-060212.202304201141) ...
Setting up linux-headers-6.2.12-060212-generic (6.2.12-060212.202304201141) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.12-060212-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module:
Cleaning build area...
'make' -j4 KVER=6.2.12-060212-generic KSRC=/lib/modules/6.2.12-060212-generic/build........(bad exit status: 2)
ERROR (dkms apport): binary package for 8812au: 5.6.4.2_35491.20191025 not found
Error! Bad return status for module build on kernel: 6.2.12-060212-generic (x86_64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.2.12-060212-generic (--install):
installed linux-headers-6.2.12-060212-generic package post-installation script subprocess returned error exit status 1
Setting up linux-modules-6.2.12-060212-generic (6.2.12-060212.202304201141) ...
Setting up linux-image-unsigned-6.2.12-060212-generic (6.2.12-060212.202304201141) ...
Processing triggers for linux-image-unsigned-6.2.12-060212-generic (6.2.12-060212.202304201141) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.12-060212-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module:
Cleaning build area...
'make' -j4 KVER=6.2.12-060212-generic KSRC=/lib/modules/6.2.12-060212-generic/build........^Cdpkg: error processing package linux-image-unsigned-6.2.12-060212-generic (--install):
installed linux-image-unsigned-6.2.12-060212-generic package post-installation script subprocess was interrupted
Errors were encountered while processing:
linux-headers-6.2.12-060212-generic
linux-image-unsigned-6.2.12-060212-generic
make.log 文件的 cat 显示:
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build$ cat make.log
DKMS make.log for 8812au-5.6.4.2_35491.20191025 for kernel 6.2.12-060212-generic (x86_64)
Sun 23 Apr 2023 08:18:53 AM ADT
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.2.12-060212-generic/build M=/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.12-060212-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
You are using: gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_security.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_io.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_debug.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme_ext.o
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme_ext.c: In function ‘rtw_append_assoc_req_owe_ie’:
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme_ext.c:8974:13: warning: the comparison will always evaluate as ‘true’ for the address of ‘owe_ie’ will never be NULL [-Waddress]
8974 | if (sec->owe_ie && sec->owe_ie_len > 0) {
| ^~~
In file included from /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/include/drv_types.h:70,
from /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme_ext.c:17:
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/include/rtw_security.h:167:12: note: ‘owe_ie’ declared here
167 | u8 owe_ie[MAX_OWE_IE_LEN];/* added in assoc req */
| ^~~~~~
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mi.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_vht.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rf.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_recv.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_p2p.o
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.c: In function ‘rtw_ap_update_chbw_by_ifbmp’:
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.c:4445:42: warning: the comparison will always evaluate as ‘true’ for the address of ‘padapters’ will never be NULL [-Waddress]
4445 | if (!(ifbmp & BIT(i)) || !dvobj->padapters)
| ^
In file included from /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.c:17:
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/include/drv_types.h:1046:19: note: ‘padapters’ declared here
1046 | _adapter *padapters[CONFIG_IFACE_NUMBER];/*IFACE_ID_MAX*/
| ^~~~~~~~~
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.c:4465:42: warning: the comparison will always evaluate as ‘true’ for the address of ‘padapters’ will never be NULL [-Waddress]
4465 | if (!(ifbmp & BIT(i)) || !dvobj->padapters)
| ^
/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/include/drv_types.h:1046:19: note: ‘padapters’ declared here
1046 | _adapter *padapters[CONFIG_IFACE_NUMBER];/*IFACE_ID_MAX*/
| ^~~~~~~~~
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rson.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_iol.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rm.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/usb_intf.o
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/usb_intf.o] Interrupt
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/efuse/rtw_efuse.o] Interrupt
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/osdep_service.o] Interrupt
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/os_intfs.o] Interrupt
make[1]: *** [Makefile:2027: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build] Interrupt
make: *** [Makefile:2257: modules] Interrupt
答案1
问题在于陣容。我已更新/删除 dkms - alx、virtualbox、nvidia。然后安装了内核 6.3.6。
您的 8812au 有问题。这里有关于如何删除或更新的信息意外在 Ubuntu 桌面上安装了错误的网络驱动程序 - 如何设置为默认设置?