Debian
modprobe:致命:在目錄中找不到模組 v4l2loopback
我使用核心 5.9.0.0 執行 debian 10 我從官方 repo 安裝了 v4l2loopback,如
sudo apt install v4l2*
安裝sudo apt install v4l2* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'v4l2loopback-source' for glob 'v4l2*' Note, selecting 'v4l2ucp' for glob 'v4l2*' Note, selecting 'v4l2loopback-dkms' for glob 'v4l2*' Note, selecting 'v4l2loopback-modules' for glob 'v4l2*' Note, selecting 'v4l2loopback-utils' for glob 'v4l2*'
我已經
linux-headers-5.9.0-0.bpo.2-amd64
安裝了,並且uname -a Linux debian 5.9.0-0.bpo.2-amd64 #1 SMP Debian 5.9.6-1~bpo10+1 (2020-11-19) x86_64 GNU/Linux
但是,當我嘗試為 v4l2 進行 modprobe 時,會發生以下情況:
sudo modprobe v4l2loopback modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.9.0-0.bpo.2-amd64
文件夾存在,但我看不到這個模組。我嘗試清除 v4l2,重新安裝,重新啟動,什麼都沒有。
有什麼幫助嗎?
謝謝!
編輯:嘗試安裝它們時我實際上有一些錯誤,這是完整的輸出
sudo apt install v4l2loopback-dkms v4l2loopback-utils Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: v4l2loopback-dkms v4l2loopback-utils 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/54.6 kB of archives. After this operation, 153 kB of additional disk space will be used. Selecting previously unselected package v4l2loopback-dkms. (Reading database ... 378603 files and directories currently installed.) Preparing to unpack .../v4l2loopback-dkms_0.12.1-1_all.deb ... Unpacking v4l2loopback-dkms (0.12.1-1) ... Selecting previously unselected package v4l2loopback-utils. Preparing to unpack .../v4l2loopback-utils_0.12.1-1_all.deb ... Unpacking v4l2loopback-utils (0.12.1-1) ... Setting up v4l2loopback-dkms (0.12.1-1) ... Loading new v4l2loopback-0.12.1 DKMS files... Building for 5.9.0-0.bpo.2-amd64 Building initial module for 5.9.0-0.bpo.2-amd64 Error! Bad return status for module build on kernel: 5.9.0-0.bpo.2-amd64 (x86_64) Consult /var/lib/dkms/v4l2loopback/0.12.1/build/make.log for more information. dpkg: error processing package v4l2loopback-dkms (--configure): installed v4l2loopback-dkms package post-installation script subprocess returned error exit status 10 Setting up v4l2loopback-utils (0.12.1-1) ... Processing triggers for man-db (2.8.5-2) ... Errors were encountered while processing: v4l2loopback-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)
關於問題可能是什麼,輸出並不是很有說服力,我嘗試了 a
sudo dpkg --configure v4l2loopback-dkms
但得到了同樣的錯誤
我會回答我自己的問題。由於我的核心是 5.9.0.0,我是從 buster-backports 安裝的,而 v4l2 是從 buster repo 安裝的,所以它關閉了。
我也通過安裝它來解決它,
buster-backports
它工作正常