我正在尝试在 Ubuntu 上安装 OBS-Studio,但终端中一直出现错误。我按照 OBS Github 上的说明进行操作。这是我在终端中得到的结果:
user@user-desktop:~$ sudo apt-get install obs-studio
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libobs0 obs-plugins
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
obs-studio
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,910 kB of archives.
After this operation, 10.4 MB of additional disk space will be used.
(Reading database ... 171904 files and directories currently installed.)
Preparing to unpack .../obs-studio_21.1.0-0obsproject1~bionic_amd64.deb ...
Unpacking obs-studio (21.1.0-0obsproject1~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/obs-studio_21.1.0-0obsproject1~bionic_amd64.deb (--unpack):
trying to overwrite '/usr/share/obs/libobs/bicubic_scale.effect', which is also in package libobs0:amd64 21.0.2+dfsg1-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/obs-studio_21.1.0-0obsproject1~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@user-desktop:~$
答案1
卸载冲突的库
sudo apt-get remove libobs0
尝试安装 OBS
sudo get install obs-studio