You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.2 LTS安装FFmpeg遇未满足依赖问题求助

Ubuntu 22.04.2 LTS安装FFmpeg遇未满足依赖问题求助

之前我在Ubuntu 20.04 LTS上尝试安装FFmpeg 5,跟着教程操作但没成功。之后我升级到了Ubuntu 22.04.2 LTS(升级过程本身也遇到了不少问题),结果现在还是没法正常安装FFmpeg。

我执行了命令:

sudo apt install 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: libavcodec58 (= 7:4.4.2-0ubuntu0.22.04.1)
          Depends: libavdevice58 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.3-0ubuntu1~20.04.sav2 is to be installed
          Depends: libavfilter7 (= 7:4.4.2-0ubuntu0.22.04.1)
          Depends: libavformat58 (= 7:4.4.2-0ubuntu0.22.04.1)
          Depends: libavutil56 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.3-0ubuntu1~20.04.sav2 is to be installed
          Depends: libpostproc55 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.3-0ubuntu1~20.04.sav2 is to be installed
          Depends: libswresample3 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.3-0ubuntu1~20.04.sav2 is to be installed
          Depends: libswscale5 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.3-0ubuntu1~20.04.sav2 is to be installed
E: Unable to correct problems, you have held broken packages.

我现在的系统是Ubuntu 22.04.2 LTS,但为什么apt却试图匹配针对20.04版本的依赖包呢?有没有人能帮我分析下问题出在哪,以及该怎么解决?

备注:内容来源于stack exchange,提问作者josh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 10:30:28