在使用sudo apt install ffmpeg安装ffmpeg时,我会得到以下错误
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 list,mediafire因为日志很大。
发布于 2023-02-15 00:43:46
看起来您在系统中添加了一个非标准的存储库。后缀"sav2“让我假设它是https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg4。虽然使用第三方存储库本质上没有什么问题,但其含义很难理解。因此,我不推荐给初学者。
您可以尝试安装ppa-purge。那就跑
sudo ppa-purge -o savoury1从您的系统(以及它提供的所有包)中删除违规存储库。那么sudo apt install ffmpeg就有成功的机会。
发布于 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
https://unix.stackexchange.com/questions/735564
复制相似问题