installation issue with jetson_linux_r32.7.2 and ubuntu:focal

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

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

RUN echo 'deb r32.4 main' >> /etc/apt/sources.list.d/nvidia.list && \
    echo 'deb 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

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/ && \
    sed -i 's/chroot . \//  /g' nv_tegra/ && \
    /bin/bash ./ -r / --target-overlay && cd .. \
    rm -rf Linux_for_Tegra && \
    echo "/usr/lib/aarch64-linux-gnu/tegra" > /etc/ && 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 and it does work. focal is supported by Nvidia

Ah found it. r32.7.1 doesn’t support focal, but bionic. does