Debian repository misconfiguration

Trying to setup Isaac ROS on my computer running Ubuntu 22.04 and run_dev.sh fails to build the image. The output is as follow:

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/johnson/Workspace/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.user  
/home/johnson/Workspace/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.ros2_humble
Building /home/johnson/Workspace/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.ros2_humble as image: x86_64-ros2_humble-image with base: 
[+] Building 2.0s (5/5) FINISHED                                                                                                                                                                                                                                           docker:default
 => [internal] load build definition from Dockerfile.x86_64.ros2_humble                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 567B                                                                                                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                      0.0s
 => [internal] load metadata for nvcr.io/nvidia/isaac/ros:x86_64-ros2_humble_bcf535ea3b9d16a854aaeb1701ab5a86                                                                                                                                                                        1.9s
 => CACHED [1/1] FROM nvcr.io/nvidia/isaac/ros:x86_64-ros2_humble_bcf535ea3b9d16a854aaeb1701ab5a86@sha256:2e19ce7ab384f5e8003975fcdf5a31f5b65e32e71427759ab079dfb4d05b8cca                                                                                                           0.0s
 => exporting to image                                                                                                                                                                                                                                                               0.0s
 => => exporting layers                                                                                                                                                                                                                                                              0.0s
 => => writing image sha256:bba9c085eca72d06bb5332447793361b4d54cb55fbb6e3056bf4b7918e0a9456                                                                                                                                                                                         0.0s
 => => naming to docker.io/library/x86_64-ros2_humble-image                                                                                                                                                                                                                          0.0s
Building /home/johnson/Workspace/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.user as image: isaac_ros_dev-x86_64 with base: x86_64-ros2_humble-image
[+] Building 6.5s (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
 => [internal] load build context                                                                                                                                                                                                                                                    0.0s
 => => transferring context: 179B                                                                                                                                                                                                                                                    0.0s
 => CACHED [ 1/10] FROM docker.io/library/x86_64-ros2_humble-image                                                                                                                                                                                                                   0.0s
 => ERROR [ 2/10] RUN apt-get update && apt-get install -y         sudo         udev && rm -rf /var/lib/apt/lists/* && apt-get clean                                                                                                                                                 6.4s
------                                                                                                                                       
 > [ 2/10] RUN apt-get update && apt-get install -y         sudo         udev && rm -rf /var/lib/apt/lists/* && apt-get clean:               
0.199 Get:2 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease [23.8 kB]                                            
0.217 Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1,581 B]                                  
0.222 Get:1 https://repo.download.nvidia.com/jetson/x86_64/focal r35.4 InRelease [3,302 B]                                                   
0.240 Get:4 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal InRelease [4,316 B]                                                
0.271 Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages [1,403 kB]
0.322 Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                                                                                                                                                           
0.334 Get:7 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
0.343 Get:8 https://repo.download.nvidia.com/jetson/x86_64/focal r35.4/main amd64 Packages [26.8 kB]
0.440 Get:9 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal/main amd64 Packages [2,938 B]
0.483 Get:10 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal/main amd64 Packages [522 kB]
0.483 Err:10 https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal/main amd64 Packages
0.483   File has unexpected size (532706 != 521501). Mirror sync in progress? [IP: 93.184.221.222 443]
0.483   Hashes of expected file:                                                                                                             
0.483    - Filesize:521501 [weak]
0.483    - SHA256:b94ac94da8c18406b6d6f4db86d705e2ad7aebd553a83d9c182238a7019c1140
0.483    - SHA1:494a191a246e9ec10a91efad5b0a7ffec03e00b8 [weak]
0.483    - MD5Sum:06188a222b71f8e3cba52533d890f2a1 [weak]
0.483   Release file created at: Sat, 27 Jan 2024 07:51:03 +0000
0.803 Get:11 http://packages.ros.org/ros2-testing/ubuntu focal InRelease [4,685 B]
0.804 Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3,421 kB]
0.853 Get:14 https://apt.kitware.com/ubuntu focal InRelease [15.5 kB]
0.888 Get:13 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease [28.0 kB]
0.909 Get:15 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
1.031 Get:16 http://packages.ros.org/ros2-testing/ubuntu focal/main amd64 Packages [1,192 kB]
1.052 Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                                                                                                                                                                                                          
1.189 Get:18 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
1.203 Get:19 https://apt.kitware.com/ubuntu focal/main amd64 Packages [77.4 kB]
1.241 Get:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]         
1.413 Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,185 kB]
1.544 Get:22 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.7 kB]
1.544 Get:23 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3,327 kB]
2.239 Get:25 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
2.337 Get:24 https://packagecloud.io/github/git-lfs/ubuntu focal/main amd64 Packages [3,505 B]
2.361 Get:26 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
2.361 Get:27 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.4 kB]
2.361 Get:28 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,480 kB]
2.368 Get:29 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3,477 kB]
2.708 Get:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3,895 kB]
2.951 Get:31 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
2.952 Get:32 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
5.585 Fetched 33.1 MB in 5s (6,064 kB/s)
5.585 Reading package lists...
6.285 E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/ubuntu/main/dists/focal/main/binary-amd64/Packages.gz  File has unexpected size (532706 != 521501). Mirror sync in progress? [IP: 93.184.221.222 443]
6.285    Hashes of expected file:
6.285     - Filesize:521501 [weak]
6.285     - SHA256:b94ac94da8c18406b6d6f4db86d705e2ad7aebd553a83d9c182238a7019c1140
6.285     - SHA1:494a191a246e9ec10a91efad5b0a7ffec03e00b8 [weak]
6.285     - MD5Sum:06188a222b71f8e3cba52533d890f2a1 [weak]
6.285    Release file created at: Sat, 27 Jan 2024 07:51:03 +0000
6.285 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.

The problem has been reported by Run_dev.sh Failed to build base image; File has unexpected size and is occurring again. The problem should be associated with a mis-configuration in the apt source “deb https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal main”.

Hi @johnsonli1993, and welcome to the Isaac ROS forum,

Could you please retry to if is fixed now?
Meanwhile, I am forwarding your issue to the engineering team.

Raffaello

Hi @Raffaello,

thank you for your reply. I just retried after cleaning the apt cache via sudo rm -rf /var/lib/apt/lists/* and sudo apt clean. But the checksum mismatch issue persists.

Hi @johnsonli1993

This bug should be fixed now. Let me know.

Raffaello

Hi @Raffaello, I think this issue is back again.
I’m using the IsaacROSDev Container…

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.215.166 443]
   Hashes of expected file:
    - Filesize:29756 [weak]
    - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
    - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
    - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000

I tried clearing the cache, didn’t work.
Thank you,

This is occurring when I attempt to enter the workspace and run ./src/isaac_ros_common/scripts/run_dev.sh.

Same issue occurred to me. It seems that there is a minor update across all isaac ros packages from 3.0.0 to 3.0.1 and someone misconfigure the apt packages. Will need to wait until a weekday when the engineering team is back to office.

2 Likes

Hi @skl1g14 and @brettpac

This issue is similar to Unable to run apt update, file has unexpected size

I keep you posted when there are updates.

Best,
Raffaello

1 Like

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

Best,
Raffaello

Yup. working for me now. Thank you,

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