I have encountered same error during kernel update (5.5.15 -> 5.6.13). Latest version of 5.5.* compiles correctly (5.5.19). Looks like some breaking changes have been made within all 5.6.* kernel versions. Here are logs:
DKMS make.log for bbswitch-0.8 for kernel 5.6.13-050613-generic (x86_64) Sat May 16 07:11:26 CEST 2020 make -C /lib/modules/5.6.13-050613-generic/build M="$(pwd)" modules make[1]: Entering directory '/usr/src/linux-headers-5.6.13-050613-generic' CC [M] /var/lib/dkms/bbswitch/0.8/build/bbswitch.o /var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_init’: /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:460:63: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 460 | acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops); | ^~~~~~~~~~~~~~ | | | struct file_operations * In file included from ./include/acpi/acpi_bus.h:83, from ./include/linux/acpi.h:32, from /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:32: ./include/linux/proc_fs.h:64:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’ 64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:267: recipe for target '/var/lib/dkms/bbswitch/0.8/build/bbswitch.o' failed make[2]: *** [/var/lib/dkms/bbswitch/0.8/build/bbswitch.o] Error 1 Makefile:1683: recipe for target '/var/lib/dkms/bbswitch/0.8/build' failed make[1]: *** [/var/lib/dkms/bbswitch/0.8/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.6.13-050613-generic' Makefile:13: recipe for target 'default' failed make: *** [default] Error 2 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to bbswitch in Ubuntu. https://bugs.launchpad.net/bugs/1878603 Title: package bbswitch-dkms 0.8-8 failed to install/upgrade: 已安装 bbswitch- dkms 软件包 post-installation 脚本 子进程返回错误状态 10 Status in bbswitch package in Ubuntu: New Bug description: when i install bumblebee on my labtop in ubuntu20.04LST, tell me that "dpkg: 处理软件包 bbswitch-dkms (--configure)时出错:已安装 bbswitch-dkms 软件包 post-installation 脚本 子进程返回错误状态 10" ProblemType: Package DistroRelease: Ubuntu 20.04 Package: bbswitch-dkms 0.8-8 Uname: Linux 5.6.11-050611-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 AptOrdering: dkms:amd64: Install bumblebee:amd64: Install bbswitch-dkms:amd64: Install primus-libs:amd64: Install NULL: ConfigurePending Architecture: amd64 CasperMD5CheckResult: skip Date: Thu May 14 20:28:26 2020 ErrorMessage: 已安装 bbswitch-dkms 软件包 post-installation 脚本 子进程返回错误状态 10 InstallationDate: Installed on 2020-05-11 (2 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2 PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-minimal, 2.7.12-1~16.04 RelatedPackageVersions: dpkg 1.19.7ubuntu3 apt 2.0.2ubuntu0.1 SourcePackage: bbswitch Title: package bbswitch-dkms 0.8-8 failed to install/upgrade: 已安装 bbswitch-dkms 软件包 post-installation 脚本 子进程返回错误状态 10 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1878603/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp