我运行内核为 5.9.0.0 的 debian 10 我从官方存储库安装了 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
当我尝试 modprobe v4l2 时,会发生以下情况:
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)
输出对于问题可能是什么不是很雄辩,我尝试了sudo dpkg --configure v4l2loopback-dkms
但得到了相同的错误
答案1
我会回答我自己的问题。由于我的内核是 5.9.0.0,是从 buster-backports 安装的,而 v4l2 是从 buster repo 安装的,所以它已关闭。
我也通过安装解决了这个问题,buster-backports
并且工作正常