尝试在 Ubuntu 上安装 PCAN 驱动程序时出现 Modprobe 错误 1804

Modprobe error while trying to install PCAN driver on Ubuntu 1804

错误如下所示。

modprobe: ERROR: could not insert 'pcan': Operation not permitted
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for pcan
modprobe: ERROR: could not insert 'pcan': Operation not permitted

很可能您启用了安全启动。您可以通过以下方式确认:

sudo apt-get install mokutil
mokutil --sb-state

如果这给你 SecureBoot enabled,则进入 BIOS 并禁用 EFI 模式的安全启动。

我通过重新编译 peak can 并重新安装解决了这个问题