1

dkms returns Error! The /var/lib/dkms/backport-iwlwifi/8324/5.4.0-113-generic/x86_64/dkms.conf for module backport-iwlwifi includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.

I ran the wireless-info script, the dmesg file contains periodic messages every few minutes about the wifi disconnecting and reconnecting. What can I do? I am on a Lenovo W510 which was solid as a rock under 18.04 LTS.

Karl
  • 11

2 Answers2

0

Nope for kerneltree 5.4 or newer it is not building.

apt changelog backport-iwlwifi-dkms

backport-iwlwifi-dkms (8324-0ubuntu3~20.04.4) focal; urgency=medium

  • Disable build against kernel newer than v5.4. (LP: #1932158)

but in the universe repo there is an older version which is building (tested it with

 dkms status
backport-iwlwifi, 8324, 5.4.0-110-generic, x86_64: installed
backport-iwlwifi, 8324, 5.4.0-113-generic, x86_64: installed

)

sudo apt install --reinstall backport-iwlwifi-dkms=8324-0ubuntu1

Note I do not know if it is fixing your disconnect problem, this is only a workaround for failing building.

nobody
  • 5,792
0

I had my ubuntu 20.04 installed with Kernel 5.15.0-27.29 and everything worked fine. When sudo apt-get update && sudo apt-get upgrade was given, I noticed the following error message The /var/lib/dkms/backport-iwlwifi/8324/5.15.0-56-generic/x86_64/dkms.conf for module backport-iwlwifi includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.

This time it was trying to install Kernel 5.15.0-56.62. Then, the Wi-Fi was not getting detected.

I followed the solution given in https://askubuntu.com/questions/1046589/backport-for-iwlwifi and it worked. I am just reproducing the steps.

git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j4
sudo make install

Though it generated few errors, warnings,Wifi started working again after a reboot.