package – Installing ffmpeg in ubuntu
Recently I tried to install ffmpeg in my ubuntu and I received an error saying broken packages.
I already tried
Sudo apt update && sudo apt install ffmpeg
Sudo apt update && sudo apt upgrade
-hp:~$ sudo apt update && sudo apt install ffmpeg
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease
Hit:3 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
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 it is not going 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.2-0ubuntu0.22.04.1+esm1 is to be installed
Depends: libpostproc55 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.2-0ubuntu0.22.04.1+esm1 is to be installed
Depends: libswresample3 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.2-0ubuntu0.22.04.1+esm1 is to be installed
Depends: libswscale5 (= 7:4.4.2-0ubuntu0.22.04.1) but 7:4.4.2-0ubuntu0.22.04.1+esm1 is to be installed
E: Unable to correct problems, you have held broken package
s.
I am unable to find the cause so please help me get it right
Read more here: Source link
