Package conflict between NVIDIA ffmpeg and libpostproc-dev

Same issue as

My installation log:

agx@agx-1:~ » sudo apt install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ffmpeg
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/14.3 MB of archives.
After this operation, 52.4 MB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 236222 files and directories currently installed.)
Preparing to unpack .../ffmpeg_7%3a4.2.7-nvidia_arm64.deb ...
Unpacking ffmpeg (7:4.2.7-nvidia) ...
Replacing files in old package libavcodec-dev:arm64 (7:4.2.7-0ubuntu0.1) ...
Replacing files in old package libavdevice-dev:arm64 (7:4.2.7-0ubuntu0.1) ...
Replacing files in old package libavfilter-dev:arm64 (7:4.2.7-0ubuntu0.1) ...
Replacing files in old package libavformat-dev:arm64 (7:4.2.7-0ubuntu0.1) ...
Replacing files in old package libavutil-dev:arm64 (7:4.2.7-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/ffmpeg_7%3a4.2.7-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.2.7-0ubuntu0.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/ffmpeg_7%3a4.2.7-nvidia_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi,
Please try this and see if it works:
Package conflict between NVIDIA ffmpeg and libpostproc-dev - #11 by whitesscott

Nothing changed after running:

sudo apt clean && sudo apt install ffmpeg -y

What nv_tegra_release are you?

When I upgraded to 36.4 it added this line:
“deb https://repo.download.nvidia.com/jetson/ffmpeg r36.4 main” to this file:
/etc/apt/sources.list.d/nvidia-l4t-apt-source.list

and I believe that provides the functional ffmpeg:
ffmpeg 7:4.4.2-nvidia
libpostproc-dev 7:4.4.2-0ubuntu0.22.04.1

Your log above you shows ealier versions.

Hi,
Please try

$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libpostproc-dev_7%3a4.2.7-0ubuntu0.1_arm64.deb
$ sudo apt --fix-broken install

Not work
The /var/cache/apt/archives/libpostproc-dev_7%3a4.2.7-0ubuntu0.1_arm64.deb doesn’t exist.
So I tried the following:

sudo apt download libpostproc-dev
sudo dpkg -i --force-overwrite ./libpostproc-dev_7%3a4.2.7-0ubuntu0.1_arm64.deb
sudo apt install -f
# As the last command has no effect:
sudo apt install ffmpeg -y

Same error output…

I’m using Xavier, which has an elder Ubuntu and of course elder packages than Orin.
Perhaps the bug is now only fixed on Orin.

Hi,
We can run the commands successfully on Jetpack 5.1.4/Xavier:

$ sudo apt update
$ sudo apt install ffmpeg libpostproc-dev
$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libpostproc-dev_7%3a4.2.7-0ubuntu0.1_arm64.deb
$ sudo apt --fix-broken install

Great!
But as I’ve already installed libpostproc-dev, so I run the following command first before yours:

$ sudo dpkg --ignore-depends libpostproc-dev -r libpostproc-dev

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.