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 tar lbzip2 git binutils xz-utils apt-utils software-properties-common
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
I’m thinking that it overwrites or removes files that are required and corrupts the OS. 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