jos*_*osh 5 apt ppa ffmpeg software-installation
我之前尝试按照https://ubuntuhandbook.org/index.php/2022/02/install-ffmpeg-5-0-ubuntu/在 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.
Run Code Online (Sandbox Code Playgroud)
当我现在有版本 22 时,apt 试图安装版本 20 的依赖项,这是怎么回事?
按照建议的问题建议表https://askubuntu.com/a/60314/1030659
sudo aptitude install ffmpeg
让我选择未满足的依赖项并从 ubuntu20 版本“降级”到 ubuntu22 版本。我现在已经定期安装了 ffmpeg
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
然而遗憾的是这仍然不是 ffmpeg 版本 5,但这确实解决了我的麻烦。