Unable to run apt update, file has unexpected size

I’m trying to install nvblox on ubuntu22.04 on my Jetson agx orin. I successfully downloaded and launched the isaac_ros_nvblox package last week without updating the docker environment, so I have to rebuild the whole package again when I get into the docker environment. But when I tried to reinstall the nvblox following the steps in quick start, I got an error in sudo apt update, the following are the detailed error.

$ sudo apt update 
Hit:1 https://packages.microsoft.com/repos/code stable InRelease
Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease                 
Hit:3 https://repo.download.nvidia.com/jetson/common r36.3 InRelease           
Hit:4 https://repo.download.nvidia.com/jetson/t234 r36.3 InRelease             
Hit:5 https://repo.download.nvidia.com/jetson/ffmpeg r36.3 InRelease           
Hit:6 http://packages.ros.org/ros2/ubuntu jammy InRelease                      
Hit:7 http://ports.ubuntu.com/ubuntu-ports jammy InRelease                     
Hit:8 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease             
Get:9 https://pkgs.tailscale.com/stable/ubuntu jammy InRelease                 
Hit:10 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease          
Hit:11 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:12 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease
Ign:13 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages
Get:13 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages [23.1 kB]
Err:13 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages
  File has unexpected size (23003 != 23063). Mirror sync in progress? [IP: 118.212.138.164 443]
  Hashes of expected file:
   - Filesize:23063 [weak]
   - SHA256:d1728a482b4422e7c4446155bd9d10a5ca39084967cbdd2e8a68979b0f463883
   - SHA1:9d487ab80af1da80a1192d3f100558bfca8c82e9 [weak]
   - MD5Sum:9f4542a47d445b350fc0bf470858103f [weak]
  Release file created at: Fri, 31 May 2024 17:11:20 +0000
Fetched 6,575 B in 5s (1,395 B/s)
Reading package lists... Done
W: https://isaac.download.nvidia.cn/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.
E: Failed to fetch https://isaac.download.nvidia.cn/isaac-ros/release-3/dists/jammy/release-3.0/binary-arm64/Packages.bz2  File has unexpected size (23003 != 23063). Mirror sync in progress? [IP: 118.212.138.164 443]
   Hashes of expected file:
    - Filesize:23063 [weak]
    - SHA256:d1728a482b4422e7c4446155bd9d10a5ca39084967cbdd2e8a68979b0f463883
    - SHA1:9d487ab80af1da80a1192d3f100558bfca8c82e9 [weak]
    - MD5Sum:9f4542a47d445b350fc0bf470858103f [weak]
   Release file created at: Fri, 31 May 2024 17:11:20 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

The same problem.

E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/release-3.0/binary-amd64/Packages.bz2  File has unexpected size (23466 != 23438). Mirror sync in progress? [IP: 192.229.232.31 443]
   Hashes of expected file:
    - Filesize:23438 [weak]
    - SHA256:87e3d773318aa7b743ce6251b3bdadab89dba372906a4db3155baa9f381b133f
    - SHA1:f04ce7009d90bc53a8c82f69beeeae31eb3bac6e [weak]
    - MD5Sum:09db33524c205d1d37e763ac972ee8ae [weak]
   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
E: Failed to fetch https://isaac.download.nvidia.cn/isaac-ros/release-3/dists/jammy/release-3.0/binary-amd64/Packages.bz2  File has unexpected size (23466 != 23438). Mirror sync in progress? [IP: 45.43.32.220 443]
   Hashes of expected file:
    - Filesize:23438 [weak]
    - SHA256:87e3d773318aa7b743ce6251b3bdadab89dba372906a4db3155baa9f381b133f
    - SHA1:f04ce7009d90bc53a8c82f69beeeae31eb3bac6e [weak]
    - MD5Sum:09db33524c205d1d37e763ac972ee8ae [weak]
   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Same here, although in my case, for what it is worth, I was trying to rebuild the reference flow for rtdetr. Same issue though.

bb

Hi all,

Thank you for your post. I have forwarded your issue to engineering and will keep you updated.

Raffaello

I also have this problem when trying to access any deb packages from https://isaac.download.nvidia.cn/isaac-ros/release-3/dists/jammy/release-3.0

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

Best,
Raffaello

I tried it 5 minutes ago, and it seems that the error occurs again.

iwintern@ubuntu:~$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 https://repo.download.nvidia.com/jetson/common r36.3 InRelease
Hit:3 https://repo.download.nvidia.com/jetson/t234 r36.3 InRelease
Hit:4 https://repo.download.nvidia.com/jetson/ffmpeg r36.3 InRelease           
Hit:5 http://ports.ubuntu.com/ubuntu-ports jammy InRelease                     
Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease             
Hit:7 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease           
Hit:8 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease            
Get:9 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease [3,429 B]
Ign:10 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages
Get:10 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages [23.0 kB]
Err:10 https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy/release-3.0 arm64 Packages
  File has unexpected size (23009 != 23008). Mirror sync in progress? [IP: 14.205.47.205 443]
  Hashes of expected file:
   - Filesize:23008 [weak]
   - SHA256:7820c2fd9a3200888c05ff88d6a83e28ff4cafe21d73f5942c6372c8beee579d
   - SHA1:b625a6a3215c69ca7f0cbf253931e983d81332e2 [weak]
   - MD5Sum:c5135311e4076e68c88aeb7168752341 [weak]
  Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
Fetched 3,429 B in 8s (433 B/s)                                                
Reading package lists... Done
W: https://isaac.download.nvidia.cn/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.
W: Skipping acquire of configured file 'universe/binary-arm64/Packages' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en_US' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en_HK' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/Components-arm64.yml' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/icons-48x48.tar' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/icons-64x64.tar' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/icons-64x64@2.tar' as repository 'https://isaac.download.nvidia.cn/isaac-ros/release-3 jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
E: Failed to fetch https://isaac.download.nvidia.cn/isaac-ros/release-3/dists/jammy/release-3.0/binary-arm64/Packages.bz2  File has unexpected size (23009 != 23008). Mirror sync in progress? [IP: 14.205.47.205 443]
   Hashes of expected file:
    - Filesize:23008 [weak]
    - SHA256:7820c2fd9a3200888c05ff88d6a83e28ff4cafe21d73f5942c6372c8beee579d
    - SHA1:b625a6a3215c69ca7f0cbf253931e983d81332e2 [weak]
    - MD5Sum:c5135311e4076e68c88aeb7168752341 [weak]
   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

After reflash my Jetson, the problem didn’t occur again.