Search code examples
linuxdriverubuntu-18.04

Modprobe error while trying to install PCAN driver on Ubuntu 1804


The error looks as follows.

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

Solution

  • Most probably you are in secure boot enabled. You can confirm this by:

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

    If this gives you SecureBoot enabled, then get into the BIOS and disable secure boot of EFI mode.