• error updating packages: kernel fails on module build

    From Eric S Fraga@3:633/10 to All on Thursday, April 30, 2026 15:30:01
    Hello all,

    for Debian stable, I'm trying to update (having done an apt
    dist-upgrade) and get the following error:

    --8<---------------cut here---------------start------------->8---
    Setting up linux-image-6.12.74+deb13+1-amd64 (6.12.74-2) ... /etc/kernel/postinst.d/dkms:
    Sign command: /lib/modules/6.12.74+deb13+1-amd64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key
    Public certificate (MOK): /var/lib/dkms/mok.pub

    Autoinstall of module rtl88x2bu/5.13.1 for kernel 6.12.74+deb13+1-amd64 (x86_64)
    Building module(s).....(bad exit status: 2)
    Failed command:
    ./dkms-make.sh

    Error! Bad return status for module build on kernel: 6.12.74+deb13+1-amd64 (x86_64)
    Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.

    Autoinstall on 6.12.74+deb13+1-amd64 failed for module(s) rtl88x2bu(10). --8<---------------cut here---------------end--------------->8---

    Any suggestions on how to fix this? Everything else is fine.

    Thank you,
    eric

    --
    Eric S Fraga via gnus (Emacs 31.0.50 2026-04-30) on Debian 13.4

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Wanderer@3:633/10 to All on Thursday, April 30, 2026 17:20:01
    On 2026-04-30 at 09:23, Eric S Fraga wrote:
    Hello all,

    for Debian stable, I'm trying to update (having done an apt
    dist-upgrade) and get the following error:

    --8<---------------cut here---------------start------------->8---
    Setting up linux-image-6.12.74+deb13+1-amd64 (6.12.74-2) ... /etc/kernel/postinst.d/dkms:
    Sign command: /lib/modules/6.12.74+deb13+1-amd64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key
    Public certificate (MOK): /var/lib/dkms/mok.pub

    Autoinstall of module rtl88x2bu/5.13.1 for kernel 6.12.74+deb13+1-amd64 (x86_64)
    Building module(s).....(bad exit status: 2)
    Failed command:
    ./dkms-make.sh

    Error! Bad return status for module build on kernel: 6.12.74+deb13+1-amd64 (x86_64)
    Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.

    Autoinstall on 6.12.74+deb13+1-amd64 failed for module(s) rtl88x2bu(10). --8<---------------cut here---------------end--------------->8---

    Any suggestions on how to fix this? Everything else is fine.
    Where does that module come from?
    I don't find any reference to the string 'rtl88x2bu' in my currently configured/available source repositories (current Debian testing and
    stable), so my reflex is to suspect that this is a third-party module
    you've gotten from somewhere outside Debian.
    If that's correct, most likely that module is not compatible with some
    change that's included in the kernel (or build chain) in question, and
    you'll need to either update it from where you got it, or remove it.
    If you want to troubleshoot beyond that, I'd suggest starting by looking
    at the log file indicated in the error message; there's not a lot we can
    do to figure out the cause of the build failure without access to that log.
    --
    The Wanderer
    The reasonable man adapts himself to the world; the unreasonable one
    persists in trying to adapt the world to himself. Therefore all
    progress depends on the unreasonable man. -- George Bernard Shaw


    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Timothy M Butterworth@3:633/10 to All on Thursday, April 30, 2026 17:50:01
    On Thu, Apr 30, 2026 at 9:24?AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
    Hello all,

    for Debian stable, I'm trying to update (having done an apt
    dist-upgrade) and get the following error:

    You should not need to do a dist-upgrade unless you are upgrading from
    Debian 12 to 13.

    --8<---------------cut here---------------start------------->8---
    Setting up linux-image-6.12.74+deb13+1-amd64 (6.12.74-2) ... /etc/kernel/postinst.d/dkms:
    Sign command: /lib/modules/6.12.74+deb13+1-amd64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key
    Public certificate (MOK): /var/lib/dkms/mok.pub

    Autoinstall of module rtl88x2bu/5.13.1 for kernel 6.12.74+deb13+1-amd64 (x86_64)
    Building module(s).....(bad exit status: 2)
    Failed command:
    ./dkms-make.sh

    You should check to make sure you have kernel headers, dkms and make
    installed. I get a similar error when I am missing kernel headers.


    Error! Bad return status for module build on kernel: 6.12.74+deb13+1-amd64 (x86_64)
    Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.

    Autoinstall on 6.12.74+deb13+1-amd64 failed for module(s) rtl88x2bu(10). --8<---------------cut here---------------end--------------->8---

    Any suggestions on how to fix this? Everything else is fine.

    Thank you,
    eric

    --
    Eric S Fraga via gnus (Emacs 31.0.50 2026-04-30) on Debian 13.4


    --
    ???????
    ??????? Debian - The universal operating system
    ??????? https://www.debian.org/
    ?????


    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)