I was building the kernel module with the wrong gcc version. I was using gcc version 4.9 instead of the original gcc-4.8 from Ubuntu LTS Trusty 14.04.5
Sorry for this bug which wasn't one. ** Changed in: bcmwl (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to bcmwl in Ubuntu. https://bugs.launchpad.net/bugs/1766993 Title: dpkg-reconfigure bcmwl-kernel-source : modprobe: ERROR: could not insert 'wl': Exec format error Status in bcmwl package in Ubuntu: Invalid Bug description: Hi, The bcmwl driver cannot be build upon the linux-header v4.4.0-121-generic : $ sudo dpkg-reconfigure bcmwl-kernel-source [sudo] password for sebastien: Removing all DKMS Modules Done. Loading new bcmwl-6.30.223.248+bdcom DKMS files... Building only for 4.4.0-121-generic Building for architecture x86_64 Building initial module for 4.4.0-121-generic Done. wl: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/4.4.0-121-generic/updates/dkms/ depmod.... DKMS: install completed. modprobe: ERROR: could not insert 'wl': Exec format error update-initramfs: deferring update (trigger activated) Traitement des actions différées (« triggers ») pour initramfs-tools (0.103ubuntu4.10) ... update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic Traitement des actions différées (« triggers ») pour shim-signed (1.32~14.04.2+0.9+1474479173.6c180c6-1ubuntu1) ... Secure Boot not enabled on this system. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: bcmwl-kernel-source 6.30.223.248+bdcom-0ubuntu0.2 ProcVersionSignature: Ubuntu 4.4.0-121.145~14.04.1-generic 4.4.117 Uname: Linux 4.4.0-121-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.27 Architecture: amd64 CurrentDesktop: KDE Date: Thu Apr 26 00:03:47 2018 InstallationDate: Installed on 2016-09-22 (580 days ago) InstallationMedia: Kubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803) SourcePackage: bcmwl UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1766993/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp