I’m having issues with NVIDIA ffmpeg package as it is having a conflict with libpostproc-dev and subsequently all of libpostproc-dev’s dependencies such as libav*.
below is the error message
After this operation, 56.2 MB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 206247 files and directories currently installed.)
Preparing to unpack …/ffmpeg_7%3a4.4.2-nvidia_arm64.deb …
Unpacking ffmpeg (7:4.4.2-nvidia) …
Replacing files in old package libavcodec-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …
Replacing files in old package libavdevice-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …
Replacing files in old package libavfilter-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …
Replacing files in old package libavformat-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …
Replacing files in old package libavutil-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …
dpkg: error processing archive /var/cache/apt/archives/ffmpeg_7%3a4.4.2-nvidia_arm64.deb (–unpack):
trying to overwrite ‘/usr/include/aarch64-linux-gnu/libpostproc/postprocess.h’, which is also in package libpostproc-dev:arm64 7:4.4.2-0ubuntu0.22.04.1+esm4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/ffmpeg_7%3a4.4.2-nvidia_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi,
Would like to confirm if we understand the issue. So if libpostproc-dev is in the command, the error is shown. And if there is no libpostproc-dev, the ffmpeg package can be installed. Is this understanding correct?
It fails with libpostproc-dev removed. Error:
dpkg: error processing archive /var/cache/apt/archives/ffmpeg_7%3a4.4.2-nvidia_arm64.deb (–unpack):
trying to overwrite ‘/usr/include/aarch64-linux-gnu/libpostproc/postprocess.h’, which is also in package libpostproc-dev:arm64 7:4.4.2-0ubuntu0.22.04.1+esm4
After the install fails I am unable to uninstall ffmpeg or repair the install. I have Jetpack 6.0, Linux R36.3, and Ubuntu 22.04. Is there a diffrence in the ffmpeg from the Ubuntu repo vs. NVIDIA repo?
libpostproc-dev is a base package and is a dependency for most of the libav*-dev, and maybe a few more.
if i only install ffmpeg i believe the installation goes fine, and the opposite is also true. Saying that ffmpeg is blocking a lot of other packages from installing.
Here’s a method to force fix so that apt becomes functional again. Not the global fix as that’ll between ffmpeg and libpostproc-dev deb packages. The following worked on orin agx developer kit 32gb. sudo dpkg -i --force-overwrite /var/cache/apt/archives/libpostproc-dev_7%3a4.4.2-0ubuntu0.22.04.1_arm64.deb
sudo apt --fix-broken install
Did apt remove, update, install ffmpeg. Looks like they linked to a file that is not available to aarch64/arm64 r36.3. (ffmpeg: error while loading shared libraries: libdav1d.so.7: cannot open shared object file: No such file or directory).
Did they compile ffmpeg on an x86_64 machine? because on my hp workstation the file the updated for Jetson ffmpeg wants is: