Quando executo o comando sudo ./install-video
aparece esse erro
Registering webcam device
insmod: ERROR: could not insert module /lib/modules/5.15.0-56-generic/kernel/drivers/media/video/v4l2loopback-dc.ko: Operation not permitted
warning: insmod failed
saída completa:
sudo ./install-video
Webcam parameters: '640' and '480'
Building v4l2loopback-dc.ko
make: Entrando no diretório '/tmp/droidcam/v4l2loopback'
make -C /lib/modules/5.15.0-56-generic/build M=/tmp/droidcam/v4l2loopback modules
make[1]: Entrando no diretório '/usr/src/linux-headers-5.15.0-56-generic'
CC [M] /tmp/droidcam/v4l2loopback/v4l2loopback-dc.o
MODPOST /tmp/droidcam/v4l2loopback/Module.symvers
CC [M] /tmp/droidcam/v4l2loopback/v4l2loopback-dc.mod.o
LD [M] /tmp/droidcam/v4l2loopback/v4l2loopback-dc.ko
BTF [M] /tmp/droidcam/v4l2loopback/v4l2loopback-dc.ko
Skipping BTF generation for /tmp/droidcam/v4l2loopback/v4l2loopback-dc.ko due to unavailability of vmlinux
make[1]: Saindo do diretório '/usr/src/linux-headers-5.15.0-56-generic'
make: Saindo do diretório '/tmp/droidcam/v4l2loopback'
Secure Boot is enabled, attempting to sign the driver
Copying file
+ cp v4l2loopback/v4l2loopback-dc.ko /lib/modules/5.15.0-56-generic/kernel/drivers/media/video/
+ set +x
Registering webcam device
insmod: ERROR: could not insert module /lib/modules/5.15.0-56-generic/kernel/drivers/media/video/v4l2loopback-dc.ko: Operation not permitted
warning: insmod failed
Running depmod
make: Entrando no diretório '/tmp/droidcam/v4l2loopback'
make -C /lib/modules/5.15.0-56-generic/build M=/tmp/droidcam/v4l2loopback clean
make[1]: Entrando no diretório '/usr/src/linux-headers-5.15.0-56-generic'
CLEAN /tmp/droidcam/v4l2loopback/Module.symvers
make[1]: Saindo do diretório '/usr/src/linux-headers-5.15.0-56-generic'
make: Saindo do diretório '/tmp/droidcam/v4l2loopback'
Done
ao abrir o programa esta mensagem aparece
alguma ideia do que posso fazer?
Responder1
Eu resolvi isso. Desative a inicialização segura, reinstalei o v4l2loopback
sudo apt install v4l2loopback-utils v4l2loopback-dkms cmake nasm yasm pkg-config libgtk2.0-dev
sudo modprobe v4l2loopback
v4l2-ctl --list-devices # check if you have dummy video devices
Dummy video device (0x0000) (platform:v4l2loopback-000):
/dev/video0