I'm so sorry for wasting your time, you are quite right this was a dkms module I installed from the modern_laptop git repository (https://github.com/vrolife/modern_laptop). I did a dpkg search for the module, but I'd installed it by script and forgot.
Thank you for helping debug the problem though, very much appreciated! My laptop is now running happily on 6.2.0/23.04 beta. ** Changed in: linux (Ubuntu) Status: Incomplete => Invalid -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/2015019 Title: 23.04 Beta: Realtek 8852be WiFi driver DKMS module fails to build Status in linux package in Ubuntu: Invalid Bug description: I installed the 23.04 Beta but the WiFi dkms module failed to build: Setting up linux-headers-6.2.0-18-generic (6.2.0-18.18) ... /etc/kernel/header_postinst.d/dkms: * dkms: running auto installation service for kernel 6.2.0-18-generic Sign command: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der Building module: Cleaning build area...(bad exit status: 2) make -j16 KERNELRELEASE=6.2.0-18-generic ENTRY=yes all...(bad exit status: 2) ERROR (dkms apport): binary package for 8852be: 1.0.5 not found Error! Bad return status for module build on kernel: 6.2.0-18-generic (x86_64) Consult /var/lib/dkms/8852be/1.0.5/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.0-18-generic (--configure): installed linux-headers-6.2.0-18-generic package post-installation script subprocess returned error exit status 1 No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-headers-generic: linux-headers-generic depends on linux-headers-6.2.0-18-generic; however: Package linux-headers-6.2.0-18-generic is not configured yet. dpkg: error processing package linux-headers-generic (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-headers-6.2.0-18-generic linux-headers-generic E: Sub-process /usr/bin/dpkg returned an error code (1) The make log reads as follows (/var/lib/dkms/8852be/1.0.5/build/make.log): DKMS make.log for 8852be-1.0.5 for kernel 6.2.0-18-generic (x86_64) Mon 03 Apr 2023 06:32:07 +07 make -j7 -C /lib/modules/6.2.0-18-generic/build M=/var/lib/dkms/8852be/1.0.5/build KERNELRELEASE=6.2.0-18-generic ENTRY= modules make[1]: warning: -j7 forced in submake: resetting jobserver mode. make[1]: Entering directory '/usr/src/linux-headers-6.2.0-18-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/8852be/1.0.5/build/platform/platform_linux_pc_pci.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/rtw_cfg.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/ioctl_linux.o CC [M] /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/xmit_linux.o /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.c: In function ‘rtw_ndev_init’: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.c:294:9: error: too many arguments to function ‘netif_napi_add’ 294 | netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT); | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/8852be/1.0.5/build/include/osdep_service_linux.h:31, from /var/lib/dkms/8852be/1.0.5/build/include/osdep_service.h:42, from /var/lib/dkms/8852be/1.0.5/build/include/drv_types.h:31, from /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.c:17: ./include/linux/netdevice.h:2586:1: note: declared here 2586 | netif_napi_add(struct net_device *dev, struct napi_struct *napi, | ^~~~~~~~~~~~~~ /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.c: In function ‘rtw_random32’: /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.c:850:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘get_random_u32’? [-Werror=implicit-function-declaration] 850 | return prandom_u32(); | ^~~~~~~~~~~ | get_random_u32 make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/8852be/1.0.5/build/os_dep/linux/os_intfs.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/8852be/1.0.5/build/os_dep/osdep_service_linux.o] Error 1 make[1]: *** [Makefile:2026: /var/lib/dkms/8852be/1.0.5/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-18-generic' make: *** [Makefile:637: all] Error 2 ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: linux-headers-6.2.0-18-generic 6.2.0-18.18 ProcVersionSignature: Ubuntu 5.19.0-40.41-generic 5.19.17 Uname: Linux 5.19.0-40-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.26.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Mon Apr 3 06:37:32 2023 InstallationDate: Installed on 2022-11-13 (140 days ago) InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020) MachineType: TIMI Redmi Book Pro 15 2022 ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/BOOT/ubuntu_0wg03z@/vmlinuz-5.19.0-40-generic root=ZFS=rpool/ROOT/ubuntu_0wg03z ro quiet splash vt.handoff=1 RelatedPackageVersions: linux-restricted-modules-5.19.0-40-generic N/A linux-backports-modules-5.19.0-40-generic N/A linux-firmware 20230323.gitbcdcfbcf-0ubuntu1 SourcePackage: linux UpgradeStatus: Upgraded to lunar on 2023-04-02 (0 days ago) dmi.bios.date: 07/13/2022 dmi.bios.release: 1.5 dmi.bios.vendor: TIMI dmi.bios.version: RMARB5B1P0505 dmi.board.asset.tag: Type2 - Board Asset Tag dmi.board.name: TM2113 dmi.board.vendor: TIMI dmi.board.version: V94C1 dmi.chassis.asset.tag: Chassis Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: TIMI dmi.ec.firmware.release: 1.5 dmi.modalias: dmi:bvnTIMI:bvrRMARB5B1P0505:bd07/13/2022:br1.5:efr1.5:svnTIMI:pnRedmiBookPro152022:pvr:rvnTIMI:rnTM2113:rvrV94C1:cvnTIMI:ct10:cvr:skuTM2113-39463: dmi.product.family: Mi Laptop dmi.product.name: Redmi Book Pro 15 2022 dmi.product.sku: TM2113-39463 dmi.sys.vendor: TIMI To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2015019/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp