Jetson-containers keep exiting with error code but not sure what it means

unfortunately no.

so i tried to install again:

jetson-containers build --name comf4/jetson-containers:latest --skip-tests=all --base comf3/comf:latest --no-github-api opencv

i can see that it completed up to the following but when it tries python, again the same error. my goal is to add the missing software to my existing image.

i can’t seem to see if the command i used above does not meet this objective…

Successfully tagged comf4/jetson-containers:latest-r36.4.3-cudnn
-- Building container comf4/jetson-containers:latest-r36.4.3-python

the full log is below

╭─kkk at kkkORIN in ~ 25-01-29 - 10:46:05
╰─○ jetson-containers build --name comf4/jetson-containers:latest --skip-tests=all --base comf3/comf:latest --no-github-api opencv                 
Namespace(packages=['opencv'], name='comf4/jetson-containers:latest', base='comf3/comf:latest', multiple=False, build_flags='', build_args='', package_dirs=[''], list_packages=False, show_packages=False, skip_packages=[''], skip_errors=False, skip_tests=['all'], test_only=[''], simulate=False, push='', logs='', verbose=False, no_github_api=True)
-- L4T_VERSION=36.4.3
-- JETPACK_VERSION=6.2
-- CUDA_VERSION=12.6
-- PYTHON_VERSION=3.10
-- LSB_RELEASE=22.04 (jammy)
Failed to fetch version information. Status code: 404
-- Building containers  ['build-essential', 'pip_cache:cu126', 'cuda:12.6', 'cudnn', 'python', 'numpy', 'opencv']
-- Building container comf4/jetson-containers:latest-r36.4.3-build-essential

DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-build-essential \
--file /home/kkk/apps/jetson-containers/packages/build/build-essential/Dockerfile \
--build-arg BASE_IMAGE=comf3/comf:latest \
/home/kkk/apps/jetson-containers/packages/build/build-essential \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-build-essential.txt; exit ${PIPESTATUS[0]}

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  19.97kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
 ---> 1076a07cef8d
Step 3/5 : ENV DEBIAN_FRONTEND=noninteractive     LANGUAGE=en_US:en     LANG=en_US.UTF-8     LC_ALL=en_US.UTF-8
 ---> Using cache
 ---> be50881f934b
Step 4/5 : RUN set -ex     && apt-get update     && apt-get install -y --no-install-recommends         locales         locales-all         tzdata     && locale-gen en_US $LANG     && update-locale LC_ALL=$LC_ALL LANG=$LANG     && locale         && apt-get install -y --no-install-recommends         build-essential         software-properties-common         apt-transport-https         ca-certificates         lsb-release         pkg-config         gnupg         git         git-lfs         gdb         wget         wget2         curl         nano         zip         unzip         time         sshpass         ssh-client     && apt-get clean     && rm -rf /var/lib/apt/lists/*         && gcc --version     && g++ --version
 ---> Using cache
 ---> d40163187ada
Step 5/5 : COPY tarpack /usr/local/bin/
 ---> Using cache
 ---> 377c604a0d4b
Successfully built 377c604a0d4b
Successfully tagged comf4/jetson-containers:latest-r36.4.3-build-essential
-- Building container comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126

DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126 \
--file /home/kkk/apps/jetson-containers/packages/cuda/cuda/Dockerfile.pip \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-build-essential \
--build-arg TAR_INDEX_URL="https://apt.jetson-ai-lab.dev:8000/jp6/cu126" \
--build-arg PIP_INDEX_REPO="https://pypi.jetson-ai-lab.dev/jp6/cu126" \
--build-arg PIP_UPLOAD_REPO="http://localhost/jp6/cu126" \
--build-arg PIP_UPLOAD_USER="jp6" \
--build-arg PIP_UPLOAD_PASS="none" \
--build-arg SCP_UPLOAD_URL="localhost:/dist/jp6/cu126" \
--build-arg SCP_UPLOAD_USER="None" \
--build-arg SCP_UPLOAD_PASS="None" \
/home/kkk/apps/jetson-containers/packages/cuda/cuda \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-pip_cache_cu126.txt; exit ${PIPESTATUS[0]}

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  40.45kB
Step 1/4 : ARG BASE_IMAGE
Step 2/4 : FROM ${BASE_IMAGE}
 ---> 377c604a0d4b
Step 3/4 : ARG PIP_INDEX_REPO     PIP_UPLOAD_REPO     PIP_UPLOAD_USER     PIP_UPLOAD_PASS     PIP_TRUSTED_HOSTS     TAR_INDEX_URL     SCP_UPLOAD_URL     SCP_UPLOAD_USER     SCP_UPLOAD_PASS
 ---> Using cache
 ---> 5e2f36c2c149
Step 4/4 : ENV TAR_INDEX_URL=${TAR_INDEX_URL}     PIP_INDEX_URL=${PIP_INDEX_REPO}     PIP_TRUSTED_HOST=${PIP_TRUSTED_HOSTS}     TWINE_REPOSITORY_URL=${PIP_UPLOAD_REPO}     TWINE_USERNAME=${PIP_UPLOAD_USER}     TWINE_PASSWORD=${PIP_UPLOAD_PASS}     SCP_UPLOAD_URL=${SCP_UPLOAD_URL}     SCP_UPLOAD_USER=${SCP_UPLOAD_USER}     SCP_UPLOAD_PASS=${SCP_UPLOAD_PASS}
 ---> Using cache
 ---> 3b38c570e1ab
Successfully built 3b38c570e1ab
Successfully tagged comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126
-- Building container comf4/jetson-containers:latest-r36.4.3-cuda_12.6

DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-cuda_12.6 \
--file /home/kkk/apps/jetson-containers/packages/cuda/cuda/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-pip_cache_cu126 \
--build-arg CUDA_URL="https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda-tegra-repo-ubuntu2204-12-6-local_12.6.3-1_arm64.deb" \
--build-arg CUDA_DEB="cuda-tegra-repo-ubuntu2204-12-6-local" \
--build-arg CUDA_PACKAGES="cuda-toolkit*" \
--build-arg CUDA_ARCH_LIST="87" \
--build-arg DISTRO="ubuntu2204" \
/home/kkk/apps/jetson-containers/packages/cuda/cuda \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-cuda_12.6.txt; exit ${PIPESTATUS[0]}

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  40.45kB
Step 1/9 : ARG BASE_IMAGE
Step 2/9 : FROM ${BASE_IMAGE}
 ---> 3b38c570e1ab
Step 3/9 : ARG CUDA_URL     CUDA_DEB     CUDA_PACKAGES     CUDA_ARCH_LIST     DISTRO="ubuntu2004"
 ---> Using cache
 ---> f8c0a2407502
Step 4/9 : COPY install.sh /tmp/install_cuda.sh
 ---> Using cache
 ---> 8e7351143003
Step 5/9 : RUN /tmp/install_cuda.sh
 ---> Using cache
 ---> 64b5abf21efb
Step 6/9 : ENV CUDA_HOME="/usr/local/cuda"
 ---> Using cache
 ---> cb59eca45c64
Step 7/9 : ENV NVCC_PATH="$CUDA_HOME/bin/nvcc"
 ---> Using cache
 ---> b9db24e22430
Step 8/9 : ENV NVIDIA_VISIBLE_DEVICES=all     NVIDIA_DRIVER_CAPABILITIES=all     CUDAARCHS=${CUDA_ARCH_LIST}     CUDA_ARCHITECTURES=${CUDA_ARCH_LIST}     CUDA_HOME="/usr/local/cuda"     CUDNN_LIB_PATH="/usr/lib/aarch64-linux-gnu"     CUDNN_LIB_INCLUDE_PATH="/usr/include"     CMAKE_CUDA_COMPILER=${NVCC_PATH}     CUDA_NVCC_EXECUTABLE=${NVCC_PATH}     CUDACXX=${NVCC_PATH}     TORCH_NVCC_FLAGS="-Xfatbin -compress-all"     CUDA_BIN_PATH="${CUDA_HOME}/bin"     CUDA_TOOLKIT_ROOT_DIR="${CUDA_HOME}"     PATH="$CUDA_HOME/bin:${PATH}"     LD_LIBRARY_PATH="${CUDA_HOME}/compat:${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}"     DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> c362ea9b2bff
Step 9/9 : WORKDIR /
 ---> Using cache
 ---> 4b5c3336d6f8
Successfully built 4b5c3336d6f8
Successfully tagged comf4/jetson-containers:latest-r36.4.3-cuda_12.6
-- Building container comf4/jetson-containers:latest-r36.4.3-cudnn

DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-cudnn \
--file /home/kkk/apps/jetson-containers/packages/cuda/cudnn/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cuda_12.6 \
--build-arg CUDNN_URL="https://developer.download.nvidia.com/compute/cudnn/9.4.0/local_installers/cudnn-local-tegra-repo-ubuntu2204-9.4.0_1.0-1_arm64.deb" \
--build-arg CUDNN_DEB="cudnn-local-tegra-repo-ubuntu2204-9.4.0" \
--build-arg CUDNN_PACKAGES="libcudnn*-dev libcudnn*-samples" \
/home/kkk/apps/jetson-containers/packages/cuda/cudnn \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-cudnn.txt; exit ${PIPESTATUS[0]}

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  22.53kB
Step 1/7 : ARG BASE_IMAGE
Step 2/7 : FROM ${BASE_IMAGE}
 ---> 4b5c3336d6f8
Step 3/7 : ARG CUDNN_URL
 ---> Using cache
 ---> 6b2072a77b68
Step 4/7 : ARG CUDNN_DEB
 ---> Using cache
 ---> 545565a9a410
Step 5/7 : ARG CUDNN_PACKAGES
 ---> Using cache
 ---> a86e2675f64f
Step 6/7 : RUN echo "Downloading ${CUDNN_DEB}" &&     mkdir /tmp/cudnn && cd /tmp/cudnn &&     wget --quiet --show-progress --progress=bar:force:noscroll ${CUDNN_URL} &&     dpkg -i *.deb &&     cp /var/cudnn-local-tegra-repo-*/cudnn-local-tegra-*-keyring.gpg /usr/share/keyrings/ &&     apt-get update &&     apt-cache search cudnn &&     apt-get install -y --no-install-recommends ${CUDNN_PACKAGES} &&     rm -rf /var/lib/apt/lists/* &&     apt-get clean &&     dpkg --list | grep cudnn &&     dpkg -P ${CUDNN_DEB} &&     rm -rf /tmp/cudnn
 ---> Using cache
 ---> 862b585a5587
Step 7/7 : RUN cd /usr/src/cudnn_samples_v*/conv_sample/ &&     make -j$(nproc)
 ---> Using cache
 ---> f64307f4785f
Successfully built f64307f4785f
Successfully tagged comf4/jetson-containers:latest-r36.4.3-cudnn
-- Building container comf4/jetson-containers:latest-r36.4.3-python

DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-python \
--file /home/kkk/apps/jetson-containers/packages/build/python/Dockerfile \
--build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cudnn \
--build-arg PYTHON_VERSION_ARG="3.10" \
/home/kkk/apps/jetson-containers/packages/build/python \
2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-python.txt; exit ${PIPESTATUS[0]}

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
            environment-variable.

Sending build context to Docker daemon  22.02kB
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
 ---> f64307f4785f
Step 3/6 : ARG PYTHON_VERSION_ARG
 ---> Using cache
 ---> c7e3896ac9b7
Step 4/6 : ENV PYTHON_VERSION=${PYTHON_VERSION_ARG}     PIP_DISABLE_PIP_VERSION_CHECK=on     PIP_DEFAULT_TIMEOUT=100     PYTHONFAULTHANDLER=1     PYTHONUNBUFFERED=1     PYTHONIOENCODING=utf-8     PYTHONHASHSEED=random     PIP_NO_CACHE_DIR=off     PIP_CACHE_PURGE=true     PIP_ROOT_USER_ACTION=ignore     TWINE_NON_INTERACTIVE=1     DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 96c3d7af2c73
Step 5/6 : COPY install.sh /tmp/install_python.sh
 ---> Using cache
 ---> 5b1b56a0c086
Step 6/6 : RUN /tmp/install_python.sh
 ---> Running in 6933a7466f4d
+ apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages [17.2 MB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages [1,758 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse arm64 Packages [224 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/restricted arm64 Packages [24.2 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [30.6 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [2,556 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [1,472 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [3,006 kB]
Get:13 https://apt.repos.intel.com/oneapi all InRelease [5,680 B]
Get:14 https://apt.repos.intel.com/oneapi all/main all Packages [189 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [81.0 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [33.3 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [1,186 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [2,263 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [2,879 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [24.2 kB]
Fetched 33.6 MB in 7s (4,850 kB/s)                                             
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://apt.repos.intel.com/oneapi all InRelease' doesn't support architecture 'arm64'
+ apt-get install -y --no-install-recommends python3.10 python3.10-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3.10 is already the newest version (3.10.12-1~22.04.8).
python3.10-dev is already the newest version (3.10.12-1~22.04.8).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ which python3.10
/usr/bin/python3.10
+ return_code=0
+ set -e
+ '[' 0 '!=' 0 ']'
+ rm -rf /var/lib/apt/lists/apt.repos.intel.com_oneapi_dists_all_InRelease /var/lib/apt/lists/apt.repos.intel.com_oneapi_dists_all_main_binary-all_Packages.lz4 /var/lib/apt/lists/auxfiles /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-backports_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-security_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy_universe_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_InRelease /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_main_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_multiverse_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_restricted_binary-arm64_Packages.lz4 /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_jammy-updates_universe_binary-arm64_Packages.lz4
+ apt-get clean
+ curl -sS https://bootstrap.pypa.io/get-pip.py
+ python3.10
Looking in indexes: https://pypi.jetson-ai-lab.dev/jp6/cu126, https://pypi.ngc.nvidia.com
Collecting pip
  Downloading https://pypi.jetson-ai-lab.dev/root/pypi/%2Bf/b6e/b97a803356a52/pip-25.0-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 66.1 MB/s eta 0:00:00
WARNING: Error parsing dependencies of albumentations: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/albumentations-2.0.0.dist-info/METADATA'
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.3.1
    Uninstalling pip-24.3.1:
      Successfully uninstalled pip-24.3.1
Successfully installed pip-25.0
+ ln -s /usr/bin/python3.10 /usr/local/bin/python3
ln: failed to create symbolic link '/usr/local/bin/python3': File exists
The command '/bin/sh -c /tmp/install_python.sh' returned a non-zero code: 1
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/kkk/apps/jetson-containers/jetson_containers/build.py", line 112, in <module>
    build_container(args.name, args.packages, args.base, args.build_flags, args.build_args, args.simulate, args.skip_tests, args.test_only, args.push, args.no_github_api, args.skip_packages)
  File "/home/kkk/apps/jetson-containers/jetson_containers/container.py", line 147, in build_container
    status = subprocess.run(cmd.replace(_NEWLINE_, ' '), executable='/bin/bash', shell=True, check=True)  
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'DOCKER_BUILDKIT=0 docker build --network=host --tag comf4/jetson-containers:latest-r36.4.3-python --file /home/kkk/apps/jetson-containers/packages/build/python/Dockerfile --build-arg BASE_IMAGE=comf4/jetson-containers:latest-r36.4.3-cudnn --build-arg PYTHON_VERSION_ARG="3.10" /home/kkk/apps/jetson-containers/packages/build/python 2>&1 | tee /home/kkk/apps/jetson-containers/logs/20250129_104835/build/comf4_jetson-containers_latest-r36.4.3-python.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 1.
╭─kkk at kkkORIN in ~ 25-01-29 - 10:49:12
╰─○ 

hi!

i got a question!! hahaha, since every command for jetson-containers build and indicate the base file, means whatever that was stored previously will be reused.

➜  /tmp nano install_python.sh
➜  /tmp exit
╭─kkk at kkkORIN in / 25-01-30 - 14:00:53
╰─○ jetson-containers run --volume /home/kkk/apps:/ppp -it --rm $(autotag comf1/2025-01-30:latest) /bin/zsh
zsh: correct '/home/kkk/apps:/ppp' to '/home/kkk/apps/ppp' [nyae]? n

Namespace(packages=['comf1/2025-01-30:latest'], prefer=['local', 'registry', 'build'], disable=[''], user='dustynv', output='/tmp/autotag', quiet=False, verbose=False)
-- L4T_VERSION=36.4.3  JETPACK_VERSION=6.2  CUDA_VERSION=12.6
-- Finding compatible container image for ['comf1/2025-01-30:latest']
comf1/2025-01-30:latest
V4L2_DEVICES: 
### DISPLAY environmental variable is already set: ":1"
localuser:root being added to access control list
xauth:  unable to rename authority file /tmp/.docker.xauth, use /tmp/.docker.xauth-n
chmod: changing permissions of '/tmp/.docker.xauth': Operation not permitted
+ docker run --runtime nvidia -it --rm --network host --shm-size=8g --volume /tmp/argus_socket:/tmp/argus_socket --volume /etc/enctune.conf:/etc/enctune.conf --volume /etc/nv_tegra_release:/etc/nv_tegra_release --volume /tmp/nv_jetson_model:/tmp/nv_jetson_model --volume /var/run/dbus:/var/run/dbus --volume /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket --volume /var/run/docker.sock:/var/run/docker.sock --volume /home/kkk/apps/jetson-containers/data:/data -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --device /dev/snd -e PULSE_SERVER=unix:/run/user/1000/pulse/native -v /run/user/1000/pulse:/run/user/1000/pulse --device /dev/bus/usb -e DISPLAY=:1 -v /tmp/.X11-unix/:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth --device /dev/i2c-0 --device /dev/i2c-1 --device /dev/i2c-2 --device /dev/i2c-3 --device /dev/i2c-4 --device /dev/i2c-5 --device /dev/i2c-6 --device /dev/i2c-7 --device /dev/i2c-8 --device /dev/i2c-9 -v /run/jtop.sock:/run/jtop.sock --name jetson_container_20250130_140107 --volume /home/kkk/apps:/ppp -it --rm comf1/2025-01-30:latest /bin/zsh

➜  / 
➜  / ls
bin  boot  data  dev  etc  home  lib  media  mnt  opt  ppp  proc  root  run  sbin  srv  sys  tmp  usr  var
➜  / cd tmp
➜  /tmp ls
argus_socket       tmp01qfe7rz                 tmp4rowe2_cwandb-artifacts  tmpa04oprdtwandb-artifacts  tmpgquk16z6                 tmpoazw_0jvwandb-media      tmpsv1au0mzwandb-media      tmpynn1gf2e
bitsandbytes       tmp05_5y_ab                 tmp4vvh59fawandb-media      tmp_a1vrcqbwandb-artifacts  tmphthjf3i2wandb-artifacts  tmpojh5saq7wandb-artifacts  tmpt9yht4mcwandb-artifacts  tmpzqpbncsswandb-media
build_pycuda.sh    tmp06qwx3k3wandb-artifacts  tmp4y7yl1h4                 tmp_avxv0ahwandb-artifacts  tmphtjhph5a                 tmpozi5zpdmwandb-artifacts  tmptug9yjly                 tmpztv7kp7awandb-media
debs               tmp148s3tdkwandb-media      tmp4z6z8h1gwandb-media      tmpb6hr0u84                 tmpi6sexd44wandb-media      tmpp9d5_v4swandb-artifacts  tmpujvab6cj                 torch2trt_version.json
DIFFUSERS          tmp15l0duozwandb-artifacts  tmp_5xza9f1                 tmpbchhoo9pwandb-media      tmpjgvwob2gwandb-media      tmppt_io3cx                 tmpv0yjxov1wandb-media      torchao
install_cuda.sh    tmp1lau7e3uwandb-artifacts  tmp5zxglslg                 tmpcg8q1cyjwandb-artifacts  tmpk2xp9pnxwandb-artifacts  tmppxctvv63wandb-artifacts  tmpvewutuc1wandb-artifacts  torchaudio
install_python.sh  tmp1qkctxy4wandb-artifacts  tmp6128vpg3wandb-artifacts  tmpcqzvhcbh                 tmpk57ye4obwandb-artifacts  tmpq2ohudzuwandb-artifacts  tmp_vg4qjjtwandb-artifacts  torchvision
MANIFOLD           tmp1tmimchwwandb-artifacts  tmp66f9jk8vwandb-media      tmpdrr9o8btwandb-media      tmpkbv2mhrk                 tmpqsru8hqcwandb-media      tmpvp_dzw3o                 triton
nv_jetson_model    tmp219t6gou                 tmp6oaksbinwandb-media      tmpdw2d86vmwandb-artifacts  tmpkujkgr2n                 tmpqy4_o7fwwandb-media      tmp_vqwnln4wandb-media      VHACDX
opencv             tmp240469e8                 tmp71nmixnw                 tmpdzt16119wandb-media      tmplet86exn                 tmpr20_pf0zwandb-artifacts  tmpvtdhvidu                 xformers
patches            tmp2_4357rawandb-media      tmp772nanev                 tmpf31jl5aewandb-media      tmplhm1thgwwandb-media      tmp__rs50ygwandb-media      tmpvw5yqkq4
POLYSCOPE          tmp27zuhoty                 tmp7p0n4depwandb-artifacts  tmpfdumfipp                 tmpmh75b7gbwandb-media      tmprszqhfhw                 tmp_x7_4kau
protobuf           tmp2jkyki1v                 tmp84q395_q                 tmpfsd2kw6n                 tmpn1zcn3l9                 tmprx3ptvm2wandb-artifacts  tmpxc4wo3uh
pytorch            tmp3bc4ifljwandb-artifacts  tmp_8a4rrliwandb-media      tmpg680wcfe                 tmpn5rn57aywandb-artifacts  tmps4xht9ghwandb-media      tmpxczj9h8ywandb-media
tarpack            tmp_3j56yoy                 tmp8c_8thcv                 tmpgbb6gs0z                 tmpna2kmg6twandb-media      tmpsgkw_1fjwandb-media      tmpxx5uagxxwandb-artifacts
TINYCUDANN         tmp430aqtxmwandb-artifacts  tmp9ygl_cjnwandb-artifacts  tmpgku4akknwandb-media      tmpnyz9c7g0                 tmpsnrh4oofwandb-media      tmpyf_kedypwandb-media
➜  /tmp 

can I simply delete the “install_python.sh” file and then run my additional builds???

t

i got nothing to lose at this point and will go ahead with this idea.

i commited the version where i delete the install python sh file as comf2/test-idea.

Hi,

Does your image have Python dev installed already?

It looks like there are some conflicts when Jetson-container tries to install Python:

ln: failed to create symbolic link '/usr/local/bin/python3': File exists

Do you get it to work after removing install_python.sh?
If so, it should be okay if the python version installed in your image is compatible.

Thanks.

hi there…

my last attempt also failed so i gave up for a while.

now i encounter the following where the command is unable to find the list of packages to install.

jetson-containers list 

i’ve deleted the original files, and git clone a new jetson-containers folder but i can’t seem to find packages to install because of this error.

╭─kkk at kkkORIN in ~/apps 25-02-05 - 7:51:14
╰─○ jetson-containers list 
Namespace(packages=[], name='', base='', multiple=False, build_flags='', build_args='', package_dirs=[''], list_packages=True, show_packages=False, skip_packages=[''], skip_errors=False, skip_tests=[''], test_only=[''], simulate=False, push='', logs='', verbose=False, no_github_api=False)
-- L4T_VERSION=36.4.3
-- JETPACK_VERSION=6.2
-- CUDA_VERSION=12.8
-- PYTHON_VERSION=3.10
-- LSB_RELEASE=22.04 (jammy)
**Failed to fetch version information. Status code: 404**
-- copying /etc/nv_tegra_release to /home/kkk/apps/jetson-containers/packages/llm/ollama/nv_tegra_release
-- Package nanosam has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package sam has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package kat:1 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package tam has missing dependencies, disabling...  ("couldn't find package:  sam")
-- Package clip_trt has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package nanoowl has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package sapiens has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package efficientvit has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package whisper_trt has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package riva-client:python has missing dependencies, disabling...  ("couldn't find package:  pip_cache")
-- Package piper-tts has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package whisper has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package xtts has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package whisperx has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package faster-whisper has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package voicecraft has missing dependencies, disabling...  ("couldn't find package:  whisperx")
-- Package audiocraft has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package sapien has missing dep....
-- Package mlc:0.19.0-builder has missing dependencies, disabling...  ("couldn't find package:  sudonim")
-- Package llamaspeak has missing dependencies, disabling...  ("couldn't find package:  riva-client:python")
-- Package openai has missing dependencies, disabling...  ("couldn't find package:  python")
-- Package llama-factory has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package text-generation-inference has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package vllm:0.6.6.post1 has missing dependencies, disabling...  ("couldn't find package:  torchaudio")
-- Package vllm:0.6.6.post1-builder has missing dependencies, disabling...  ("couldn't find package:  torchaudio")
-- Package xformers:0.0.29 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package xformers:0.0.29-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package exllama:0.0.15 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package exllama:0.2.3 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package auto_gptq:0.7.1 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package auto_gptq:0.7.1-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package auto_gptq:0.8.0 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package auto_gptq:0.8.0-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package tensorrt_llm:0.12 has missing dependencies, disabling...  ("couldn't find package:  tensorrt")
-- Package tensorrt_llm:0.12-builder has missing dependencies, disabling...  ("couldn't find package:  tensorrt")
-- Package bitsandbytes:0.39.1 has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package bitsandbytes:0.39.1-builder has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package bitsandbytes:0.44.1 has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package bitsandbytes:0.44.1-builder has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package bitsandbytes:0.45.0 has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package bitsandbytes:0.45.0-builder has missing dependencies, disabling...  ("couldn't find package:  triton")
-- Package flash-attention:2.5.7 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package flash-attention:2.5.7-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package flash-attention:2.6.3 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package flash-attention:2.6.3-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package flash-attention:2.7.2.post1 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package flash-attention:2.7.2.post1-builder has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package transformers:4.48.2 has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package transformers:git has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package transformers:nvgpt has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package awq:0.1.0 has missing dependencies, disabling...  ("couldn't find package:  vila")
-- Package awq:0.1.0-builder has missing dependencies, disabling...  ("couldn't find package:  vila")
-- Package auto_awq:0.2.7.post2 has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package auto_awq:0.2.7.post2-builder has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package auto_awq:0.2.6 has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package auto_awq:0.2.6-builder has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package auto_awq:0.2.4 has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package auto_awq:0.2.4-builder has missing dependencies, disabling...  ("couldn't find package:  transformers")
-- Package hymba has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package optimum has missing dependencies, disabling...  ("couldn't find package:  onnxruntime")
-- Package llama_cpp:0.2.57 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.57-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.70 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.70-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.83 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.83-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.90 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.2.90-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.1 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.1-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.2 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.2-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.5 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.5-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.6 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.6-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.7 has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package llama_cpp:0.3.7-builder has missing dependencies, disabling...  ("couldn't find package:  cuda")
-- Package langchain has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package langchain:samples has missing dependencies, disabling...  ("couldn't find package:  langchain:main")
-- Package llama-index has missing dependencies, disabling...  ("couldn't find package:  pytorch")
-- Package llama-index:samples has missing dependencies, disabling...  ("couldn't find package:  llama-index:main")
-- Package jetson-copilot has missing dependencies, disabling...  ("couldn't find package:  pytorch")
bazel
build-essential
cmake:apt
cuda:12.2
cuda:12.4
cuda:12.6
cudnn:8.9
cudnn:9.0
cudnn:9.4
ffmpeg
homeassistant-base:latest
nodejs
oled
ollama:0.4.0
ollama:0.5.1
ollama:0.5.5
ollama:0.5.7
ollama:main
opendronemap:node
pip_cache:cu122
pip_cache:cu124
pip_cache:cu126
riva-client:cpp
speech-dispatcher
╭─kkk at kkkORIN in ~/apps 25-02-05 - 7:51:30
╰─○ 

no it didn’t work.

i saw that there are new versions created recently, so i thought i could start from scratch and use those containers, but instead i encounter the error above.

╭─kkk at kkkORIN in ~/apps 25-02-05 - 7:51:30
╰─○ docker images
REPOSITORY                    TAG                                IMAGE ID       CREATED         SIZE
comf4/jetson-containers       latest-r36.4.3                     ebbc8ed414b7   2 hours ago     1.33GB
comf4/jetson-containers       latest-r36.4.3-ffmpeg              ebbc8ed414b7   2 hours ago     1.33GB
comf4/jetson-containers       latest-r36.4.3-build-essential     7765f03b29ef   2 hours ago     976MB
ffmpeg                        r36.4.3                            f5657a282772   2 hours ago     1.05GB
ffmpeg                        r36.4.3-ffmpeg                     f5657a282772   2 hours ago     1.05GB
ffmpeg                        r36.4.3-build-essential            c78dc9bda5a3   2 hours ago     734MB
haminawireless/opencv         latest                             c4a9162bada9   18 hours ago    288MB
dustynv/awq                   r36.4.0                            0340f6fe56ac   2 days ago      12.4GB
dustynv/mlc                   r36.4.0                            cc5b6be6b081   4 days ago      14.2GB
dustynv/llama_cpp             r36.4.0                            0d8066b1a9a4   4 days ago      8.3GB
dustynv/ollama                main-r36.4.0                       106156aed7a0   4 days ago      3.95GB
ubuntu                        22.04                              560582227a09   9 days ago      69.2MB
nvcr.io/nvidia/cuda-dl-base   25.01-cuda12.8-devel-ubuntu24.04   5c74a4dcc35d   12 days ago     9.7GB
nvcr.io/nvidia/pytorch        25.01-py3-igpu                     f31f25265258   2 weeks ago     10.8GB
nvcr.io/nvidia/l4t-jetpack    r36.4.0                            51f1e16a5dd9   3 months ago    9.83GB
nvcr.io/nvidia/l4t-cuda       12.6.11-runtime                    0efb2f2b7fad   5 months ago    2.09GB
dustynv/l4t-pytorch           r36.2.0                            0927a65739c2   8 months ago    13.8GB
nvcr.io/nvidia/l4t-base       r36.2.0                            46b8e6a6a6a7   14 months ago   750MB
╭─kkk at kkkORIN in ~/apps 25-02-05 - 7:56:51
╰─○