Run_dev.sh Failed to build base image; File has unexpected size

Trying to setup Isaac ROS on my laptop running Ubuntu 22.04 and run_dev.sh fails to build the image. This issue has persisted for the past two days, but I’m not sure if it’s a problem on my end or Nvidia’s.

I’ve provided the full output below:

Building x86_64.ros2_humble.user base as image: isaac_ros_dev-x86_64 using key x86_64.ros2_humble.user
Using base image name not specified, using ''
Using docker context dir not specified, using Dockerfile directory
Resolved the following Dockerfiles for target image: x86_64.ros2_humble.user
/home/eddie/Documents/GitHub/robomaster_cv/src/isaac_ros/isaac_ros_common/scripts/../docker/Dockerfile.user
/home/eddie/Documents/GitHub/robomaster_cv/src/isaac_ros/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.ros2_humble
Building /home/eddie/Documents/GitHub/robomaster_cv/src/isaac_ros/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.ros2_humble as image: x86_64-ros2_humble-image with base: 
[+] Building 0.5s (5/5) FINISHED                                                                                                                   docker:default
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [internal] load build definition from Dockerfile.x86_64.ros2_humble                                                                                      0.0s
 => => transferring dockerfile: 567B                                                                                                                         0.0s
 => [internal] load metadata for nvcr.io/nvidia/isaac/ros:x86_64-ros2_humble_f70fbf3e86d9ae99b527f8cc2c40007b                                                0.5s
 => CACHED [1/1] FROM nvcr.io/nvidia/isaac/ros:x86_64-ros2_humble_f70fbf3e86d9ae99b527f8cc2c40007b@sha256:34b51480113ed7383d5bac961c4d3108c10244e4b90b1292b  0.0s
 => exporting to image                                                                                                                                       0.0s
 => => exporting layers                                                                                                                                      0.0s
 => => writing image sha256:9533c30f8f7a44ef934476006d26d6592781b6b78460081198093b66a2859d7a                                                                 0.0s
 => => naming to docker.io/library/x86_64-ros2_humble-image                                                                                                  0.0s
Building /home/eddie/Documents/GitHub/robomaster_cv/src/isaac_ros/isaac_ros_common/scripts/../docker/Dockerfile.user as image: isaac_ros_dev-x86_64 with base: x86_64-ros2_humble-image
[+] Building 10.8s (6/14)                                                                                                                          docker:default
 => [internal] load build definition from Dockerfile.user                                                                                                    0.0s
 => => transferring dockerfile: 1.95kB                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/x86_64-ros2_humble-image:latest                                                                           0.0s
 => CACHED [ 1/10] FROM docker.io/library/x86_64-ros2_humble-image                                                                                           0.0s
 => [internal] load build context                                                                                                                            0.0s
 => => transferring context: 179B                                                                                                                            0.0s
 => ERROR [ 2/10] RUN apt-get update && apt-get install -y         sudo         udev && rm -rf /var/lib/apt/lists/* && apt-get clean                        10.8s
------                                                                                                                                                            
 > [ 2/10] RUN apt-get update && apt-get install -y         sudo         udev && rm -rf /var/lib/apt/lists/* && apt-get clean:                                    
0.821 Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                      
0.821 Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                                   
0.821 Get:4 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal InRelease [4,316 B]                                                                     
0.822 Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1,581 B]                                                       
0.822 Get:6 http://packages.ros.org/ros2-testing/ubuntu focal InRelease [4,685 B]
1.021 Hit:8 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease
1.021 Get:9 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
1.110 Get:10 https://apt.kitware.com/ubuntu focal InRelease [15.5 kB]
1.115 Get:1 https://repo.download.nvidia.com/jetson/x86_64/focal r35.4 InRelease [3,302 B]
1.172 Get:11 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal/main amd64 Packages [499 kB]
1.173 Err:11 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal/main amd64 Packages
1.173   File has unexpected size (499551 != 499404). Mirror sync in progress? [IP: 93.184.215.166 443]
1.173   Hashes of expected file:
1.173    - Filesize:499404 [weak]
1.173    - SHA256:0bd951d8f3a67be2865c64c2d950577b2158395d8d7fb5ead5e98ea8b9c968f9
1.173    - SHA1:5c3b1c5a796288db5c84c0be663012ad2deeaa11 [weak]
1.173    - MD5Sum:2b6f13316f99af58757494902eb70c78 [weak]
1.173   Release file created at: Thu, 30 Nov 2023 18:17:36 +0000
1.232 Get:7 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease [28.0 kB]
1.262 Get:12 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages [1,317 kB]
1.412 Get:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
1.467 Get:14 http://packages.ros.org/ros2-testing/ubuntu focal/main amd64 Packages [1,191 kB]
1.807 Get:15 https://apt.kitware.com/ubuntu focal/main amd64 Packages [74.7 kB]
1.932 Get:16 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,149 kB]
2.184 Get:18 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.0 kB]
2.225 Get:17 https://packagecloud.io/github/git-lfs/ubuntu focal/main amd64 Packages [3,505 B]
2.480 Get:19 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,444 kB]
2.508 Get:20 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.3 kB]
2.515 Get:21 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3,130 kB]
4.058 Get:22 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3,283 kB]
4.620 Get:23 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3,279 kB]
7.169 Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3,761 kB]
9.995 Fetched 19.1 MB in 10s (1,951 kB/s)
9.995 Reading package lists...
10.76 E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/ubuntu/main/dists/focal/main/binary-amd64/Packages.gz  File has unexpected size (499551 != 499404). Mirror sync in progress? [IP: 93.184.215.166 443]
10.76    Hashes of expected file:
10.76     - Filesize:499404 [weak]
10.76     - SHA256:0bd951d8f3a67be2865c64c2d950577b2158395d8d7fb5ead5e98ea8b9c968f9
10.76     - SHA1:5c3b1c5a796288db5c84c0be663012ad2deeaa11 [weak]
10.76     - MD5Sum:2b6f13316f99af58757494902eb70c78 [weak]
10.76    Release file created at: Thu, 30 Nov 2023 18:17:36 +0000
10.76 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile.user:18
--------------------
  17 |     # Install prerequisites
  18 | >>> RUN apt-get update && apt-get install -y \
  19 | >>>         sudo \
  20 | >>>         udev \
  21 | >>> && rm -rf /var/lib/apt/lists/* \
  22 | >>> && apt-get clean
  23 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c apt-get update && apt-get install -y         sudo         udev && rm -rf /var/lib/apt/lists/* && apt-get clean" did not complete successfully: exit code: 100
Failed to build base image: isaac_ros_dev-x86_64, aborting.

I’ve asked the same question on the GitHub repo although understandably I have not gotten a response yet since it’s the holidays.

Hi,
I had the same problem with you, although I don’t know why this issue come from and whether it is important or not. I had modified file Dockerfile.user line18 from RUN apt-get update && apt-get install -y \ to RUN apt-get update || true && apt-get install -y \ to avoid error during apt update and the container was created anyway.
Hope this help you and someone can explain why this happened.

It seems this is a real problem. Although I can build the image and run container, I failed to install some packages by apt install.
$ sudo apt-get install -y ros-humble-isaac-ros-dope ros-humble-isaac-ros-tensor-rt ros-humble-isaac-ros-dnn-image-encoder
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package ros-humble-isaac-ros-dope
E: Unable to locate package ros-humble-isaac-ros-tensor-rt
E: Unable to locate package ros-humble-isaac-ros-dnn-image-encoder

Hi all,

I am currently testing on my local device, and I have access to all the sources.

Have you checked if your network has full access to the internet?
I also tried to open the sources where your laptop failed, and everything worked.

Raffaello

I don’t believe I have any firewalls running and I am able to access the internet fine. Not sure if there would be potentially anything blocking the source from being opened on my end?

This just started happening in the last few days. I also see this (after ignoring the apt-get update error, per a previous comment), what I believe is new behaviour with ‘run_dev.sh’.

> Reading package lists... Done
> E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/ubuntu/main/dists/focal/main/binary-amd64/Packages.gz  File has unexpected size (499551 != 499404). Mirror sync in progress? [IP: 93.184.215.166 443]
>    Hashes of expected file:
>     - Filesize:499404 [weak]
>     - SHA256:0bd951d8f3a67be2865c64c2d950577b2158395d8d7fb5ead5e98ea8b9c968f9
>     - SHA1:5c3b1c5a796288db5c84c0be663012ad2deeaa11 [weak]
>     - MD5Sum:2b6f13316f99af58757494902eb70c78 [weak]
>    Release file created at: Thu, 30 Nov 2023 18:17:36 +0000
> E: Some index files failed to download. They have been ignored, or old ones used instead.

I am currently testing on my local device, and I have access to all the sources.

Are you able to successfully run run_dev.sh on a clean install? With multiple people stating that they have the same issue I’m inclined to believe it may be a problem with the Nvidia hosted package.

This used to work for me (say a week+ ago), i.e., clean install; apt-get update worked. Now it seems broken.

We’re looking at our updated packages on the Debian repository that may have led to this reported mismatch. We have not seen this locally but your comments are helping narrow down where the issue could be. Thank you!

Thank you for the update! Please let us know if any progress is made.

Side note, I wonder if this is exclusive to x86_64 systems? I was able to build the image on a Jetson Orin Nano although that was over a month ago, so things might’ve changed between now and then.

I was able to successfully build the container today; not sure if there were any changes made but just wanted to update for those following along.

Hi, I meet the similar promblem.When i use command “sudo apt update”,there is the Error:

E: Failed to fetch https://isaac.download.nvidia.cn/isaac-ros/ubuntu/main/dists/focal/main/binary-arm64/Packages.gz File has unexpected size (514250 != 486870). Mirror sync in progress? [IP: 61.170.44.225 443]
Hashes of expected file:
- Filesize:486870 [weak]
- SHA256:f0d4b7f0f324a65a7f9cd80a40afb8fefa023d7629df6824816aa48731552c86
- SHA1:d1ec7788ea5603b76c4459642a18d3b18bf04bf7 [weak]
- MD5Sum:488e1036496ee871a83175ab1c3e393e [weak]
Release file created at: Fri, 20 Oct 2023 22:42:08 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

My device:Orin AGX devkit
Jetpack:5.1.2
I have installed Isaac ROS successfully on my orin agx.

Hi @wonderfulhugo

I have forwarded your issue to the engineering team.
I will keep you updated as soon as there is any news or progress regarding your issue.

Hi @wonderfulhugo

The bug has been fixed, so you can now use the Docker container without encountering any errors.

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