我已经在 Jammy 机器上安装了 obs-studio,并且运行良好。现在,当我尝试安装obs-背景移除插件我在安装时遇到冲突。当我尝试安装 libobs-dev 作为必需项时,我收到如下冲突错误:
The following packages have unmet dependencies:
obs-studio : Conflicts: libobs0 but 27.2.3+dfsg1-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
我尝试跳过安装此包,因为我认为它可能已经与 obs-studio 一起安装了。但是在稍后尝试构建和安装时这个存储库我收到以下错误,我认为这与上面的包有关。错误是:
-- Found Git: /usr/bin/git (found version "2.34.1")
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:106 (find_package):
By not providing "Findlibobs.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libobs", but
CMake did not find one.
Could not find a package configuration file provided by "libobs" with any
of the following names:
libobsConfig.cmake
libobs-config.cmake
Add the installation prefix of "libobs" to CMAKE_PREFIX_PATH or set
"libobs_DIR" to a directory containing one of the above files. If "libobs"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
这是兼容性问题还是我在安装过程中的某个地方出了错误?
还有一个问题,即使存在冲突,有没有办法强制安装软件包?
答案1
我不确定您是否已经解决了这个问题。
我在该存储库中的一个 GitHub 问题上找到了一些有用的安装说明,请参阅参考链接。
目前尚不清楚您是如何安装 obs 的,但将其删除并开始清理可能会有所帮助(这对我的情况有帮助)。
例如删除 ppa 版本:
sudo apt remove obs-studio --auto-remove
删除链接的 ppa:
sudo add-apt-repository ppa:obsproject/obs-studio -r
从 Ubuntu 仓库安装:
sudo apt update && sudo apt install obs-studio
然后使用 pacstall 包安装插件:
pacstall -I obs-backgroundremoval-git