Isaac-ros activate --build-local error when i add realsense image-key

I followed this tutorial.

the log is:

#9 291.0 update-alternatives: using /usr/bin/python3 to provide /usr/bin/python (python) in auto mode
#9 DONE 291.2s

#10 [common 4/20] RUN --mount=type=cache,target=/var/cache/apt if [[ amd64 == ‘arm64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; elif [[ amd64 == ‘amd64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; else echo “Unrecognized platform: amd64” && exit 1 ; fi

#10 0.237 % Total % Received % Xferd Average Speed Time Time Time Current
#10 0.237 Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
#10 0.771
#10 0.771 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#10 0.771
#10 0.784 Reading package lists…E: read, still have 8 to read but none left
#10 1.381 E: Internal error, could not locate member control.tar{.zst,.lz4,.gz,.xz,.bz2,.lzma,}
#10 1.381 E: Could not read meta data from /tmp/cuda-keyring.deb
#10 1.381 E: The package lists or status file could not be parsed or opened.
#10 1.382
#10 ERROR: process “/bin/bash -c if [[ ${PLATFORM} == ‘arm64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; elif [[ ${PLATFORM} == ‘amd64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; else echo “Unrecognized platform: ${PLATFORM}” && exit 1 ; fi” did not complete successfully: exit code: 100

[common 4/20] RUN --mount=type=cache,target=/var/cache/apt if [[ amd64 == ‘arm64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; elif [[ amd64 == ‘amd64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; else echo “Unrecognized platform: amd64” && exit 1 ; fi:
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
E: read, still have 8 to read but none left
1.381 E: Internal error, could not locate member control.tar{.zst,.lz4,.gz,.xz,.bz2,.lzma,}
1.381 E: Could not read meta data from /tmp/cuda-keyring.deb
1.381 E: The package lists or status file could not be parsed or opened.
1.382


Dockerfile.noble:86

85 | # Setup NVIDIA CUDA apt keyring
86 | >>> RUN --mount=type=cache,target=/var/cache/apt
87 | >>> if [[ ${PLATFORM} == ‘arm64’ ]]; then
88 | >>> curl -o /tmp/cuda-keyring.deb
89 | >>> https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb
90 | >>> && apt install /tmp/cuda-keyring.deb
91 | >>> && rm /tmp/cuda-keyring.deb
92 | >>> && apt update;
93 | >>> elif [[ ${PLATFORM} == ‘amd64’ ]]; then
94 | >>> curl -o /tmp/cuda-keyring.deb
95 | >>> https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
96 | >>> && apt install /tmp/cuda-keyring.deb
97 | >>> && rm /tmp/cuda-keyring.deb
98 | >>> && apt update;
99 | >>> else
100 | >>> echo “Unrecognized platform: ${PLATFORM}” && exit 1 ;
101 | >>> fi

102
ERROR: failed to solve: process “/bin/bash -c if [[ ${PLATFORM} == ‘arm64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; elif [[ ${PLATFORM} == ‘amd64’ ]]; then curl -o /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt update; else echo “Unrecognized platform: ${PLATFORM}” && exit 1 ; fi” did not complete successfully: exit code: 100
docker buildx rm isaaceks-x86_64
Traceback (most recent call last):
File “/usr/lib/isaac-ros-cli/run_dev.py”, line 552, in
main()

File “/usr/lib/isaac-ros-cli/run_dev.py”, line 541, in main
build_image_layers(**build_args)
File “/usr/lib/isaac-ros-cli/build_image_layers.py”, line 736, in main
raise e
File “/usr/lib/isaac-ros-cli/build_image_layers.py”, line 733, in main
run_shell(build_cmd, capture_output=False, env=env_dict, check=True)
File “/usr/lib/isaac-ros-cli/build_image_layers.py”, line 70, in run_shell
completed_process = subprocess.run(
File “/usr/lib/python3.10/subprocess.py”, line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘docker buildx bake noble_a36082d996bc9582db03aa92fed6d54c --progress=plain --builder isaaceks-x86_64 --provenance=false --push --file /tmp/tmpn7edvpsl/docker-bake.hcl’ returned non-zero exit status 1.

Hi @fhqjwyk ,

What version of Isaac ROS CLI do you have installed? This should be fixed with Isaac ROS CLI version 1.0.2.

Could you please update your installation to 1.0.2 and try again?