I am using Ubuntu 18.04.4 with Dual boot Windows 10 on a Lenovo machine and trying to use THESE instructions to install Droidcam. When I do the installation, I get an error which says:

insmod: ERROR: could not insert module /lib/modules/5.4.0-42-generic/kernel/drivers/media/video/v4l2loopback-dc.ko: Operation not permitted

warning: insmod failed

After that I tried to run the software via terminal but got the following error prompt:

error prompt

I think the error has something to do with the UEFI secure boot.

When I do lsmod | grep v4l2loopback_dc I don't get any output, indicating that Droidcam isn't really installed.

Can someone please help me with the installation?


So Droidcam is working now.

First, I uninstalled Droidcam.

Second, Using the answer by Earl Sablo I tried the following:

sudo update-secureboot-policy --enroll-key

It asked to create a password for the secure boot menu, which I created.

Then I restarted my PC and the secure boot menu asked threw a number of options. Choose "Enter MOK key", and use the password created earlier.

Finally, reboot and reinstall Droidcam. It works fine now.