在 Ubuntu 22.04 上安裝 obs-backgroundremoval 插件

在 Ubuntu 22.04 上安裝 obs-backgroundremoval 插件

我已經在我的 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 

然後使用 pacstal 套件安裝插件:

pacstall -I obs-backgroundremoval-git

相關內容