Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261667

Re: How to recover from a broken kernel upgrade

From "M. Cuffaro" <mcuffar@gmail.com>
Newsgroups linux.debian.user
Subject Re: How to recover from a broken kernel upgrade
Date 2023-09-14 17:20 +0200
Message-ID <HdWil-8Xna-17@gated-at.bofh.it> (permalink)
References <HdH9D-8Ogh-9@gated-at.bofh.it> <HdOkN-8SsH-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Thanks Tom. Editing wifi_regd.c seems pretty promising. I'll try that.

-Mike


On 2023-09-14 02:21, Tom Dial wrote:
>
>
> 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
>
>> /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c: In 
>> function ‘rtw_regd_init’:
>> /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c:409:36: 
>> error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in 
>> this function)
>>    409 |         wiphy->regulatory_flags |= 
>> REGULATORY_IGNORE_STALE_KICKOFF;
>>        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c:409:36: 
>> note: each undeclared identifier is reported only once for each 
>> function it appears in
>>    CC [M] 
>> /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_rhashtable.o
>> make[2]: *** 
>> [/usr/src/linux-headers-6.1.0-12-common/scripts/Makefile.build:255: 
>> /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> make[1]: *** [/usr/src/linux-headers-6.1.0-12-common/Makefile:2037: 
>> /var/lib/dkms/rtl88x2bu/5.13.1/build] Error 2
>> make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-12-amd64'
>> make: *** [Makefile:2506: modules] Error 2
>>
>> Here is some information about my system:
>>
>> ** Model information
>> sys_vendor: Acer
>> product_name: Swift SF314-56
>> product_version: V1.08
>> chassis_vendor: Acer
>> chassis_version: V1.08
>> bios_vendor: Insyde Corp.
>> bios_version: V1.08
>> board_vendor: WL
>> board_name: Strongbow_WL
>> board_version: V1.08
>>
>> Here is the output of uname -a and lsb_release -a:
>>
>> [mike@dallben ~]$ uname -a
>> Linux dallben 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 
>> (2023-07-27) x86_64 GNU/Linux
>> [mike@dallben ~]$ lsb_release -a
>> No LSB modules are available.
>> Distributor ID:    Debian
>> Description:    Debian GNU/Linux 12 (bookworm)
>> Release:    12
>> Codename:    bookworm
>>
>> Best,
>> -Mike
>>
>>
>>

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to recover from a broken kernel upgrade "M. Cuffaro" <mcuffar@gmail.com> - 2023-09-14 01:10 +0200
  Re: How to recover from a broken kernel upgrade Marco <mm@dorfdsl.de> - 2023-09-14 06:50 +0200
    Re: How to recover from a broken kernel upgrade "M. Cuffaro" <mcuffar@gmail.com> - 2023-09-14 17:20 +0200
  Re: How to recover from a broken kernel upgrade Tom Dial <tddial@comcast.net> - 2023-09-14 08:50 +0200
    Re: How to recover from a broken kernel upgrade "M. Cuffaro" <mcuffar@gmail.com> - 2023-09-14 17:20 +0200

csiph-web