如何在 Ubuntu 22.04.3 上安装 v4l2loopback?

如何在 Ubuntu 22.04.3 上安装 v4l2loopback?

我正在使用 LTS 版本的发布映像,并且我相信它是最新apt updateapt upgrade

root@trainwatching:~# cat /etc/issue
Ubuntu 22.04.3 LTS \n \l

root@trainwatching:~# uname -a
Linux trainwatching.vm.somehost.local 5.15.0-1046-kvm #51-Ubuntu SMP Fri Oct 6 17:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

但是我无法安装 v4l2loopback 内核模块:

root@trainwatching:~# apt install v4l2loopback-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  v4l2loopback-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/29.5 kB of archives.
After this operation, 113 kB of additional disk space will be used.
Selecting previously unselected package v4l2loopback-dkms.
(Reading database ... 95390 files and directories currently installed.)
Preparing to unpack .../v4l2loopback-dkms_0.12.7-2ubuntu2~22.04.1_all.deb ...
Unpacking v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Setting up v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Loading new v4l2loopback-0.12.7 DKMS files...
Building for 5.15.0-1046-kvm
Building initial module for 5.15.0-1046-kvm
Error! The /var/lib/dkms/v4l2loopback/0.12.7/5.15.0-1046-kvm/x86_64/dkms.conf for module v4l2loopback includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
The /var/lib/dkms/v4l2loopback/0.12.7/5.15.0-1046-kvm/x86_64/dkms.conf for module v4l2loopback includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Skipped.

稳定版本中的软件包不应该“正常工作”吗?我确实找到了一些关于类似的错误信息但是我的文件版本已经修复了这个问题但仍然不起作用。

相关内容