首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能安装ffmpeg

我不能安装ffmpeg
EN

Unix & Linux用户
提问于 2023-02-15 00:10:15
回答 2查看 722关注 0票数 1

在使用sudo apt install ffmpeg安装ffmpeg时,我会得到以下错误

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec59 (= 7:5.1.2-0ubuntu1~22.04.sav2)
          Depends: libavfilter8 (= 7:5.1.2-0ubuntu1~22.04.sav2)
          Depends: libavformat59 (= 7:5.1.2-0ubuntu1~22.04.sav2)
 libavdevice59 : Depends: libavcodec59 (= 7:5.1.2-0ubuntu1~22.04.sav2)
                 Depends: libavfilter8 (= 7:5.1.2-0ubuntu1~22.04.sav2)
                 Depends: libavformat59 (= 7:5.1.2-0ubuntu1~22.04.sav2)
                 Depends: libsndio7 (>= 1.8.1) but it is not installable
E: Unable to correct problems, you have held broken packages

我对linux不太了解,所以我对如何解决这个问题不太了解,这是我的系统信息。这是我列出的软件包sudo apt listmediafire因为日志很大

EN

回答 2

Unix & Linux用户

发布于 2023-02-15 00:43:46

看起来您在系统中添加了一个非标准的存储库。后缀"sav2“让我假设它是https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg4。虽然使用第三方存储库本质上没有什么问题,但其含义很难理解。因此,我不推荐给初学者。

您可以尝试安装ppa-purge。那就跑

代码语言:javascript
复制
sudo ppa-purge -o savoury1

从您的系统(以及它提供的所有包)中删除违规存储库。那么sudo apt install ffmpeg就有成功的机会。

票数 2
EN

Unix & Linux用户

发布于 2023-03-26 03:18:03

我同意@Hermann的回答,您可能会使用ppa:savoury1/ffmpeg4作为新的ffmpeg包的存储库。

它的问题是,这个PPA不再工作了,而且已经坏了。它的主人Rob Savoury现在只向捐献者提供它的服务。他开始的时候,可能也会打破他的另一个公开的PPA。

根据他的个人资料:

更新(2023年3月24日):这个Launchpad站点上的PPA现在移动到一个用户(那些已经捐赠的用户)系统上。

https://launchpad.net/~savoury1

如果您想进一步使用他的软件包,可以在他的帕特伦上跟踪更新

现在你最好的解决方案就是把他所有的公共PPA从你的系统中清除出来,就像在@Hermann的回答中所说的那样。

sudo ppa-purge -o savoury1

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/735564

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档