安装软件和存储库时出错

安装软件和存储库时出错

我的笔记本电脑上安装了 Ubuntu 18.04 LTS,我决定使用 OBS 尝试将我的屏幕流式传输到 Youtube 或 Twitch。我查看了官方 OBS 安装指南,它告诉我在终端中输入以下内容:

sudo apt-get install ffmpeg

sudo add-apt-repository ppa:obsproject/obs-studio

sudo apt-get update

sudo apt-get install obs-studio

尽管每当我安装存储库时,我尝试安装 OBS-studio 应用程序都会收到此错误:

dpkg: error processing archive /var/cache/apt/archives/obs-studio_23.2.1-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_23.2.1-0obsproject1~bionic_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

每当我第一次安装该应用程序时都会出现同样的错误。

答案1

要修复此问题,您需要使用以下命令删除有问题的包

sudo apt-get remove libobs0

或者

sudo dpkg --purge libobs0

然后安装所需的包

sudo apt-get install obs-studio

相关内容