• Re: LINUX-IMAGE-6.8.11 headers cannot be installed

    From Greg Wooledge@21:1/5 to Prajnanaswaroopa on Wed Jul 17 02:40:01 2024
    On Tue, Jul 16, 2024 at 19:30:20 -0000, Prajnanaswaroopa wrote:
    Hello,
    I am using a Kali Linux

    https://www.google.com/search?q=kali+linux+support

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Wed Jul 17 05:20:01 2024
    Prajnanaswaroopa,


    What sources are you using to upgrade from?

    e.g. what do you see for:
    # cat /etc/apt/sources.list


    I do not know what Kali Linux might use for non-free firmware.


    Debian Bookworm can use something like:


    deb https://deb.debian.org/debian/ bookworm main non-free
    non-free-firmware contrib
    deb-src http://deb.debian.org/debian/ bookworm main non-free
    non-free-firmware contrib

    deb https://security.debian.org/debian-security bookworm-security main
    contrib non-free non-free-firmware
    deb-src http://security.debian.org/debian-security bookworm-security
    main contrib non-free non-free-firmware

    # bookworm-updates, to get updates before a point release is made;
    # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
    deb https://deb.debian.org/debian/ bookworm-updates main contrib
    non-free non-free-firmware
    deb-src https://deb.debian.org/debian/ bookworm-updates main contrib
    non-free non-free-firmware

    # bookworm-backports, previously on backports.debian.org
    deb https://deb.debian.org/debian/ bookworm-backports main contrib
    non-free non-free-firmware
    deb-src https://deb.debian.org/debian/ bookworm-backports main contrib
    non-free non-free-firmware


    George.





    On Wednesday, 17-07-2024 at 05:30 Prajnanaswaroopa wrote:


    Hello,
    I am using a Kali Linux 6.6.9 version. When I tried to update and
    upgrade, the terminal shows that the header linux-header-6.8.11-amd64
    cannot be installed. I tried several commands, but all seen to return
    the same comment. In addition, the error the terminal shows is as
    follows:

        dpkg: error processing package linux-headers-6.8.11-amd64
    (--configure):
        installed linux-headers-6.8.11-amd64 package post-installation
        script subprocess returned error exit status 11
        dpkg: dependency problems prevent configuration of
    linux-headers-amd64:
        linux-headers-amd64 depends on linux-headers-6.8.11-amd64
        (=   6.8.11-1kali2); however:
        Package linux-headers-6.8.11-amd64 is not configured yet.

        dpkg: error processing package linux-headers-amd64
    (--configure):
        dependency problems - leaving unconfigured
        Setting up linux-image-6.8.11-rt-amd64-dbg (6.8.11-1kali2) ...
        Setting up linux-image-6.8.11-rt-amd64 (6.8.11-1kali2) ...
        I: /initrd.img.old is now a symlink to
    boot/initrd.img-6.8.11-rt-amd64
        /etc/kernel/postinst.d/dkms:
        dkms: running auto installation service for kernel
    6.8.11-rt-amd64.
        Sign command:
    /lib/modules/6.8.11-rt-amd64/build/scripts/sign-file
        Signing key: /var/lib/dkms/mok.key
        Public certificate (MOK): /var/lib/dkms/mok.pub

        Building module:
        Cleaning build area...
        Building module(s)....................(bad exit status: 2)
        Failed command:
        'make' all KVER=6.8.11-rt-amd64
        Error! Bad return status for module build on kernel:
        6.8.11-rt-amd64   (x86_64)
        Consult /var/lib/dkms/rtl8188fu/1.0/build/make.log for more
    information.
        dkms autoinstall on 6.8.11-rt-amd64/x86_64 failed for
    rtl8188fu(10)
        Error! One or more modules failed to install during
    autoinstall.
        Refer to previous errors for more information.
        dkms: autoinstall for kernel: 6.8.11-rt-amd64 failed!

    From the errors, I feel the wifi driver `rtl8188fu` is the one that
    creates trouble. But, it is the driver for the wifi adapter for my PC,
    and deleting it would mean no internet for me. So, how should I
    proceed. For information, I currently have linux-header `uname -a`
    version as `6.6.9`. Rebooting will log me to the latest version `Kali
    Linux 6.8.11`, but without wifi drivers in the `ifconfig`, and without
    internet connection. For reference, here is first few lines of the
    content of the /var/lib/dkms/rtl8188fu/1.0/build/make.log file:

        DKMS make.log for rtl8188fu-1.0 for kernel
        6.8.11-cloud-amd64 (x86_64)
        Friday 12 July 2024 04:51:10 PM IST
        make ARCH=x86_64 CROSS_COMPILE= -C
        /lib/modules/6.8.11- cloud-amd64/build
        M=/var/lib/dkms /rtl8188fu/1.0/build  modules
        make[1]: Entering directory
        '/usr/src/linux-headers-6.8.11-cloud-amd64'
        CC [M]  /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.o
       
    /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:2225:4:    
    warning: no previous prototype for ‘_rtw_set_chplan_cmd’ [-Wmissing-prototypes]
         2225 | u8 _rtw_set_chplan_cmd(_adapter *adapter,  
        int  flags,       u8 chplan, const struct
        country_chplan  *country_ent, u8 swconfig)
          |    ^~~~~~~~~~~~~~~~~~~
        /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:2769:6: 
    warning: no previous prototype for ‘dynamic_chk_wk_hdl’ [-Wmissing-prototypes]
        2769 | void dynamic_chk_wk_hdl(_adapter *padapter)
          |      ^~~~~~~~~~~~~~~~~~
        /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:2963:6:  
    warning: no previous prototype for ‘rtw_dm_in_lps_hdl’ [-Wmissing-prototypes]
        2963 | void rtw_dm_in_lps_hdl(_adapter*padapter)
          |      ^~~~~~~~~~~~~~~~~
        /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:3004:6:
    warning: no previous prototype for ‘rtw_lps_change_dtim_hdl’ [-Wmissing-prototypes]
         3004 | void rtw_lps_change_dtim_hdl
        (_adapter *padapter, u8 dtim)
          |      ^~~~~~~~~~~~~~~~~~~~~~~
    For the full file, as it is very large, the link to open in Drive is (https://drive.google.com/file/d/1kQ5qyj_eZFg-kT3Yiw03pPLKqs5QVfOA/view?usp=sharing)

    So how do I rectify this to get it going?

    Sincerely,
    Prajnanaswaroopa S
    Kali User

    <html>
    <head>
    <style type="text/css">
    body,p,td,div,span{
    font-size:13px; font-family:Arial, Helvetica, sans-serif;
    };
    body p{
    margin:0px;
    }
    </style>
    </head>
    <body>
    <div>Prajnanaswaroopa,</div><div><br></div><div>What sources are you using to upgrade from?<br><br>e.g. what do you see for:</div><div># cat /etc/apt/sources.list</div><div><br></div><div>I do not know what Kali Linux might use for non-free firmware.</
    <div><br></div><div>Debian Bookworm can use something like:</div><div><br></div><div>deb https://deb.debian.org/debian/ bookworm main non-free non-free-firmware contrib<br>deb-src http://deb.debian.org/debian/ bookworm main non-free non-free-firmware
    contrib<br><br>deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware<br>deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware<br><br># bookworm-
    updates, to get updates before a point release is made;<br># see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports<br>deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware<br>deb-
    src https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware<br><br># bookworm-backports, previously on backports.debian.org<br>deb https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware<
    deb-src https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware<br><br></div><div>George.</div><div><br></div><div><br></div><br>On Wednesday, 17-07-2024 at 05:30 Prajnanaswaroopa wrote:<br><blockquote style="border:0;
    border-left: 2px solid #22437f; padding:0px; margin:0px; padding-left:5px; margin-left: 5px; ">Hello,<br>I am using a Kali Linux 6.6.9 version. When I tried to update and upgrade, the terminal shows that the header linux-header-6.8.11-amd64 cannot be
    installed. I tried several commands, but all seen to return the same comment. In addition, the error the terminal shows is as follows:<br><br>&nbsp;&nbsp;&nbsp; dpkg: error processing package linux-headers-6.8.11-amd64 (--configure):<br>&nbsp;&nbsp;&nbsp;
    installed linux-headers-6.8.11-amd64 package post-installation<br>&nbsp;&nbsp;&nbsp; script subprocess returned error exit status 11<br>&nbsp;&nbsp;&nbsp; dpkg: dependency problems prevent configuration of linux-headers-amd64:<br>&nbsp;&nbsp;&nbsp;
    linux-headers-amd64 depends on linux-headers-6.8.11-amd64<br>&nbsp;&nbsp;&nbsp; (=&nbsp;&nbsp; 6.8.11-1kali2); however:<br>&nbsp;&nbsp;&nbsp; Package linux-headers-6.8.11-amd64 is not configured yet.<br><br>&nbsp;&nbsp;&nbsp; dpkg: error processing
    package linux-headers-amd64 (--configure):<br>&nbsp;&nbsp;&nbsp; dependency problems - leaving unconfigured<br>&nbsp;&nbsp;&nbsp; Setting up linux-image-6.8.11-rt-amd64-dbg (6.8.11-1kali2) ...<br>&nbsp;&nbsp;&nbsp; Setting up linux-image-6.8.11-rt-amd64 (
    6.8.11-1kali2) ...<br>&nbsp;&nbsp;&nbsp; I: /initrd.img.old is now a symlink to boot/initrd.img-6.8.11-rt-amd64<br>&nbsp;&nbsp;&nbsp; /etc/kernel/postinst.d/dkms:<br>&nbsp;&nbsp;&nbsp; dkms: running auto installation service for kernel 6.8.11-rt-amd64.<
    &nbsp;&nbsp;&nbsp; Sign command: /lib/modules/6.8.11-rt-amd64/build/scripts/sign-file<br>&nbsp;&nbsp;&nbsp; Signing key: /var/lib/dkms/mok.key<br>&nbsp;&nbsp;&nbsp; Public certificate (MOK): /var/lib/dkms/mok.pub<br><br>&nbsp;&nbsp;&nbsp; Building
    module:<br>&nbsp;&nbsp;&nbsp; Cleaning build area...<br>&nbsp;&nbsp;&nbsp; Building module(s)....................(bad exit status: 2)<br>&nbsp;&nbsp;&nbsp; Failed command:<br>&nbsp;&nbsp;&nbsp; 'make' all KVER=6.8.11-rt-amd64<br>&nbsp;&nbsp;&nbsp; Error!
    Bad return status for module build on kernel:<br>&nbsp;&nbsp;&nbsp; 6.8.11-rt-amd64&nbsp;&nbsp; (x86_64)<br>&nbsp;&nbsp;&nbsp; Consult /var/lib/dkms/rtl8188fu/1.0/build/make.log for more information.<br>&nbsp;&nbsp;&nbsp; dkms autoinstall on 6.8.11-rt-
    amd64/x86_64 failed for rtl8188fu(10)<br>&nbsp;&nbsp;&nbsp; Error! One or more modules failed to install during autoinstall.<br>&nbsp;&nbsp;&nbsp; Refer to previous errors for more information.<br>&nbsp;&nbsp;&nbsp; dkms: autoinstall for kernel: 6.8.11-
    rt-amd64 failed!<br><br>From the errors, I feel the wifi driver `rtl8188fu` is the one that creates trouble. But, it is the driver for the wifi adapter for my PC, and deleting it would mean no internet for me. So, how should I proceed. For information, I
    currently have linux-header `uname -a` version as `6.6.9`. Rebooting will log me to the latest version `Kali Linux 6.8.11`, but without wifi drivers in the `ifconfig`, and without internet connection. For reference, here is first few lines of the content
    of the /var/lib/dkms/rtl8188fu/1.0/build/make.log file:<br><br>&nbsp;&nbsp;&nbsp; DKMS make.log for rtl8188fu-1.0 for kernel<br>&nbsp;&nbsp;&nbsp; 6.8.11-cloud-amd64 (x86_64)<br>&nbsp;&nbsp;&nbsp; Friday 12 July 2024 04:51:10 PM IST<br>&nbsp;&nbsp;&nbsp;
    make ARCH=x86_64 CROSS_COMPILE= -C<br>&nbsp;&nbsp;&nbsp; /lib/modules/6.8.11- cloud-amd64/build<br>&nbsp;&nbsp;&nbsp; M=/var/lib/dkms /rtl8188fu/1.0/build&nbsp; modules<br>&nbsp;&nbsp;&nbsp; make[1]: Entering directory<br>&nbsp;&nbsp;&nbsp; '/usr/src/
    linux-headers-6.8.11-cloud-amd64'<br>&nbsp;&nbsp;&nbsp; CC [M]&nbsp; /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.o<br>&nbsp;&nbsp;&nbsp; /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:2225:4:&nbsp;&nbsp;&nbsp;&nbsp; warning: no previous prototype
    for ‘_rtw_set_chplan_cmd’ [-Wmissing-prototypes]<br>&nbsp;&nbsp;&nbsp;&nbsp; 2225 | u8 _rtw_set_chplan_cmd(_adapter *adapter, &nbsp;<br>&nbsp;&nbsp;&nbsp; int&nbsp; flags,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; u8 chplan, const struct<br>&nbsp;&nbsp;&
    nbsp; country_chplan&nbsp; *country_ent, u8 swconfig)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~<br>&nbsp;&nbsp;&nbsp; /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:2769:6:&nbsp; warning: no previous prototype for ‘
    dynamic_chk_wk_hdl’ [-Wmissing-prototypes]<br>&nbsp;&nbsp;&nbsp; 2769 | void dynamic_chk_wk_hdl(_adapter *padapter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~<br>&nbsp;&nbsp;&nbsp; /var/lib/dkms/rtl8188fu/1.0/
    build/core/rtw_cmd.c:2963:6:&nbsp;&nbsp; warning: no previous prototype for ‘rtw_dm_in_lps_hdl’ [-Wmissing-prototypes]<br>&nbsp;&nbsp;&nbsp; 2963 | void rtw_dm_in_lps_hdl(_adapter*padapter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&
    nbsp; ^~~~~~~~~~~~~~~~~<br>&nbsp;&nbsp;&nbsp; /var/lib/dkms/rtl8188fu/1.0/build/core/rtw_cmd.c:3004:6: warning: no previous prototype for ‘rtw_lps_change_dtim_hdl’ [-Wmissing-prototypes]<br>&nbsp;&nbsp;&nbsp;&nbsp; 3004 | void rtw_lps_change_dtim_hdl<
    &nbsp;&nbsp;&nbsp; (_adapter *padapter, u8 dtim)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~~~~~<br>For the full file, as it is very large, the link to open in Drive is (https://drive.google.com/file/d/1kQ5qyj_
    eZFg-kT3Yiw03pPLKqs5QVfOA/view?usp=sharing)<br><br>So how do I rectify this to get it going?<br><br>Sincerely,<br>Prajnanaswaroopa S<br>Kali User<br></blockquote>
    </body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)