Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issue with jetson_linux_r32.7.2 and ubuntu:focal #6

Open
mmellema-hva opened this issue Sep 21, 2022 · 0 comments
Open

Comments

@mmellema-hva
Copy link

hi, I've got a weird issue. Somehow I cannot install the l4t package on ubuntu:focal. I've tried several versions. On Bionic it works, but focal gives the error: /usr/bin/rm : No such file or directory

Here's my dockerfile

FROM balenalib/jetson-xavier-nx-devkit-emmc-ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
ENV UDEV=on

RUN sed -i 's/r32.6 main/r32.7 main/g' /etc/apt/sources.list.d/nvidia.list

RUN echo 'deb https://repo.download.nvidia.com/jetson/common r32.4 main' >> /etc/apt/sources.list.d/nvidia.list && \
    echo 'deb https://repo.download.nvidia.com/jetson/t194 r32.4 main' >> /etc/apt/sources.list.d/nvidia.list


RUN apt-get -qq update && \
    apt install -q -y \
    # l4t
    wget tar lbzip2 git  python3-pip \
    python3.8-dev \
    #project
    supervisor \
    # cleanup
    nvidia-container-csv-cuda- libopencv-python- libvisionworks-sfm-dev- libvisionworks-dev-  \
    libvisionworks-samples- libnvinfer-samples- \
    nvidia-container-csv-cudnn- libvisionworks-tracking-dev- vpi1-samples- libopencv- libnvinfer-doc- \
    libnvparsers-dev- libnvidia-container0- nvidia-container-csv-visionworks- \
    graphsurgeon-tf- libopencv-samples- python3-libnvinfer-dev- libnvinfer-plugin-dev- \
    nvidia-container-toolkit- libnvinfer-dev- libvisionworks- libopencv-dev- \
    vpi1-dev- vpi1-demos-  python3-libnvinfer-dev- opencv-licenses- nvidia-container-csv-tensorrt- \
    libnvonnxparsers-dev-  uff-converter-tf- nvidia-docker2- libvisionworks-sfm- \
    libnvidia-container-tools- nvidia-container-runtime-  libvisionworks-tracking- \
    # alpr \
    libnvinfer-bin cuda-cudart-10-2 libopenblas-dev libnvinfer7 libnvinfer-plugin7 libnvparsers7 libnvonnxparsers7 \
    #ndi gst plugin
    libavahi-common-dev libavahi-client-dev \
    # app \
    libxml2-dev libxslt-dev libcairo2-dev unzip \
    # tegra \
    libgstreamer1.0-0 gstreamer1.0-plugins-base \
    gobject-introspection gstreamer1.0-plugins-good \
    python3-gi python3-gst-1.0 libgirepository1.0-dev gir1.2-gstreamer-1.0 libgstreamer1.0-dev  \
    gstreamer1.0-plugins-bad \
    gstreamer1.0-tools \
    # pycharm
    rsync openssh-server


RUN  mkdir /usr/src/l4t && \
    cd /usr/src/l4t && wget --quiet https://developer.nvidia.com/embedded/l4t/r32_release_v7.1/t186/jetson_linux_r32.7.1_aarch64.tbz2


RUN  cd /usr/src/l4t &&  tar xvfj jetson_linux_r32.7.1_aarch64.tbz2  && rm jetson_linux_r32.7.1_aarch64.tbz2

RUN    cd /usr/src/l4t/Linux_for_Tegra && \
    sed -i 's/install --owner=root --group=root \"${QEMU_BIN}\" \"${L4T_ROOTFS_DIR}\/usr\/bin\/\"/#install --owner=root --group=root \"${QEMU_BIN}\" \"${L4T_ROOTFS_DIR}\/usr\/bin\/\"/g' nv_tegra/nv-apply-debs.sh && \
    sed -i 's/chroot . \//  /g' nv_tegra/nv-apply-debs.sh && \
    /bin/bash ./apply_binaries.sh -r / --target-overlay && cd .. \
    rm -rf Linux_for_Tegra && \
    echo "/usr/lib/aarch64-linux-gnu/tegra" > /etc/ld.so.conf.d/nvidia-tegra.conf && ldconfig && \
     apt install -o DPkg::Options::="--force-confold" -y -q nvidia-l4t-gstreamer



when I replaced tar with tar --skip-old-files in apply_binaries.sh and l4t_extact_deb.sh it does work. focal is supported by Nvidia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant