dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
2.18k stars 446 forks source link

Unable to install libgstreamer-plugins-bad1.0-dev in jetson container #499

Closed ninoweg closed 5 months ago

ninoweg commented 5 months ago

I'm trying to install some gstreamer packages on top of dustynv/ros:humble-ros-base-l4t-r35.4.1 but I'm running into errors as soon as I try to install libgstreamer-plugins-bad1.0-dev.

A short version of what I'm trying to do is basically this FROM dustynv/ros:humble-ros-base-l4t-r35.4.1 RUN apt-get update && apt-get install --yes libgstreamer-plugins-bad1.0-dev

And I'm runnig into these errors:

47.96 Unpacking libgstreamer-plugins-bad1.0-dev:arm64 (1.16.3-0ubuntu1.1) ... 48.10 Errors were encountered while processing: 48.10 /tmp/apt-dpkg-install-8gWT1X/60-libopencv_4.5.4-8-g3e4c170df4_arm64.deb 48.10 /tmp/apt-dpkg-install-8gWT1X/62-libopencv-dev_4.5.4-8-g3e4c170df4_arm64.deb 48.17 E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm building the container on a Jetson Xavier AGX with JP5.1.2

ninoweg commented 5 months ago

Re-installing opencv before installing the gstreamer package seems to have fixed this issue:

RUN rm -f /var/lib/dpkg/info/libopencv* /var/lib/dpkg/info/opencv* && apt-get purge -y libopencv* opencv* && apt --fix-broken install -y