Error loading Tutorial for cuMotion MoveIt Plugin with Isaac Sim

Hi, I’m trying to run Tutorial for cuMotion MoveIt Plugin with Isaac Sim with this setup:
x86 machine with intel I9 and RTX 4070, Driver Version: 535.171.04 CUDA Version: 12.2
SO: Ubuntu 22.04

I can run perfectly the “How To Command Simulated Isaac Robot” tutorial (links HERE and HERE ).

When I try to run_dev.sh both with the binary package and from source i get an error about fetching some isaac ros packages for unexpected file size.

This is the output:

[+] Building 6.1s (8/20)                                                                                                                                                   docker:default
 => [internal] load build definition from Dockerfile.x86_64                                                                                                                          0.0s
 => => transferring dockerfile: 5.97kB                                                                                                                                               0.0s
 => [internal] load metadata for nvcr.io/nvidia/tritonserver:23.10-py3                                                                                                               3.8s
 => [auth] nvidia/tritonserver:pull token for nvcr.io                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                      0.0s
 => [stage-0  1/16] FROM nvcr.io/nvidia/tritonserver:23.10-py3@sha256:83513cb05c7e53ada093cab904daa8861d5b8bc67d75dd78237731411b744da9                                               0.0s
 => CACHED [stage-0  2/16] RUN mkdir -p /opt/nvidia/isaac_ros_dev_base && dpkg-query -W | sort > /opt/nvidia/isaac_ros_dev_base/x86_64-start-packages.csv                            0.0s
 => CACHED [stage-0  3/16] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y         software-properties-common && add-apt-repository universe && a  0.0s
 => ERROR [stage-0  4/16] RUN --mount=type=cache,target=/var/cache/apt     wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | apt-key add - &&     grep -qxF "deb h  2.3s
------                                                                                                                                                                                    
 > [stage-0  4/16] RUN --mount=type=cache,target=/var/cache/apt     wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | apt-key add - &&     grep -qxF "deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0" /etc/apt/sources.list ||     echo "deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0" | tee -a /etc/apt/sources.list     && apt-get update:                                                                                                                           
0.199 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).                                                                                     
0.520 OK                                                                                                                                                                                  
0.595 deb https://isaac.download.nvidia.com/isaac-ros/release-3 jammy release-3.0
1.095 Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
1.095 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
1.095 Get:3 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy InRelease [3429 B]
1.108 Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease
1.133 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
1.297 Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
1.659 Ign:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
1.712 Get:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages [29.8 kB]
1.712 Err:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
1.712   File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 93.184.221.222 443]
1.712   Hashes of expected file:
1.712    - Filesize:29756 [weak]
1.712    - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
1.712    - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
1.712    - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
1.712   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
1.785 Fetched 260 kB in 1s (234 kB/s)
1.785 Reading package lists...
2.294 W: https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
2.294 E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/release-3.0/binary-amd64/Packages.gz  File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 93.184.221.222 443]
2.294    Hashes of expected file:
2.294     - Filesize:29756 [weak]
2.294     - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
2.294     - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
2.294     - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
2.294    Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
2.294 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile.x86_64:31
--------------------
  30 |     # Add Isaac apt repository
  31 | >>> RUN --mount=type=cache,target=/var/cache/apt \
  32 | >>>     wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | apt-key add - && \
  33 | >>>     grep -qxF "deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0" /etc/apt/sources.list || \
  34 | >>>     echo "deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0" | tee -a /etc/apt/sources.list \
  35 | >>>     && apt-get update
  36 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | apt-key add - &&     grep -qxF \"deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0\" /etc/apt/sources.list ||     echo \"deb https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0\" | tee -a /etc/apt/sources.list     && apt-get update" did not complete successfully: exit code: 100
~/ws_isaacSim/src/isaac_ros_common

I already tried with sudo rm -rf /var/lib/apt/lists/* and sudo apt clean, but no luck.

Is there something being updated?
If it depends on my setup, do you have any suggestion on how to solve this?

Thank you!

I am also getting something similar. In this case, just running apt-get update inside the container on isaac_ros_dev-aarch64:latest .

Hi @marco.pastorio and @bruce823ad

This error looks similar to this other post Unable to run apt update, file has unexpected size

I keep you posted fro further updates

Best,
Raffaello

1 Like

The issue has been fixed. Please let me know if everything returns to normal.

Best,
Raffaello

Yep, it’s working now, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.