On 9/13/23 17:07, M. Cuffaro wrote:
> Hello all,
>
> I have looked around for an answer but was unable to find one, and was hoping that someone here could help me. *First, some background to my information about my question*. I recently ran
>
> apt full-upgrade
>
> on my Debian bookworm system. Because of what seems like a bug in dkms, the upgrade to linux-image-6.1.0-12-amd64 could not complete. Running
>
> apt -f install
>
> does not help. The uphshot is that, although I can still boot into my laptop using the old version of my kernel (either linux-image-6.1.0-11-amd64 or linux-image-6.1.0-10-amd64), I can no longer use apt to upgrade other packages on my system. Furthermore when I run
>
> needrestart
>
> I am informed that:
>
> The currently running kernel version is 6.1.0-10-amd64 which is not the expected kernel version 6.1.0-12-amd64.
>
> *Here is my question: How can I rollback the broken upgrade safely so that I can continue to use my system (in particular, apt) normally? Any help anyone can provide would be much appreciated.
>
> *Below are some further details. First, here is the result of running apt -f install:
>
> $ sudo apt -f install
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following packages were automatically installed and are no longer required:
> linux-headers-6.1.0-10-amd64 linux-headers-6.1.0-10-common linux-image-6.1.0-10-amd64
> Use 'sudo apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 4 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Setting up linux-image-6.1.0-12-amd64 (6.1.52-1) ...
> /etc/kernel/postinst.d/dkms:
> dkms: running auto installation service for kernel 6.1.0-12-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
>
(material deleted for brevity)
> CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_android.o
> CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_proc.o
> CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/nlrtw.o
Your file "wifi_regd.c" appears to be broken. The version at
https://github.com/RinCat/RTL88x2BU-Linux-Driver/tree/master
had the undeclared REGULATORY_IGNORE_STALE_KICKOFF removed a couple of months ago.
Perhaps you need to update the driver source dkms is working with.
(I don't know about, or vouch for, that github, or know anything about the AC1200 or its Realtek driver.)
Regards
Tom Dial