Kali wsl2 kernel upgrade error

What have you tried: sudo apt -f install, sudo dpkg --configure -a

What is the error:Error! Bad return status for module build on kernel: 5.15.167.4-microsoft-standard-WSL2 (x86_64)

What device is this on: msi GF63 thin 10SC WINDOWS 11 PRO ver 24H2 kali linux wsl2

what command are you using to update?

1 Like

sorry it took so lon g to respond. sudo apt-get update. then i run sudo apt-get upgrade -y

Maybe try to clean up the DKMS Modules:

sudo dpkg -P rtl88x2ce-dkms # Remove problematic module
sudo apt autoremove
sudo rm -rf /var/lib/dkms/rtl88x2* # Clean leftover files