Packages are not synced

Trying to create a docker image based on:
dustynv/ros:humble-ros-base-l4t-r35.1.0

When running apt-get update, getting the following error:
#15 25.11 E: Failed to fetch https://repo.download.nvidia.com/jetson/common/dists/r35.1/main/binary-arm64/Packages.gz File has unexpected size (18667 != 19134). Mirror sync in progress? [IP: 82.102.152.163 443]
#15 25.11 Hashes of expected file:
#15 25.11 - Filesize:19134 [weak]
#15 25.11 - SHA256:de4e5c93d1ad6ad832a33d40d1fcd5484f0d912ac2ee60cbba29489296a4fc0a
#15 25.11 - SHA1:5e1dca51199a43fa5b4abb1a7ca2d4af6f6b65f6 [weak]
#15 25.11 - MD5Sum:a09350bca3ceb5164749ad1a3467da10 [weak]
#15 25.11 Release file created at: Tue, 30 Aug 2022 06:43:28 +0000
#15 25.11 E: Some index files failed to download. They have been ignored, or old ones used instead.

Seems like packages need to be synced.

Just run the apt-get update?

nvidia@tegra-ubuntu:~$ sudo  apt-get update
[sudo] password for nvidia:
Hit:1 https://repo.download.nvidia.com/jetson/common r35.1 InRelease
Hit:2 https://repo.download.nvidia.com/jetson/t194 r35.1 InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 DEP-11 Metadata [278 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 DEP-11 Metadata [389 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 DEP-11 Metadata [7968 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 DEP-11 Metadata [30.5 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 DEP-11 Metadata [40.6 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 DEP-11 Metadata [76.9 kB]
Fetched 1159 kB in 3s (343 kB/s)
Reading package lists... Done


nvidia@tegra-ubuntu:~$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ focal universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal universe
deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ focal multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-security multiverse

I got same problem to jetson AGX Orin with Jetpack v5.0.2

sudo apt update
Get:1 https://repo.download.nvidia.com/jetson/common r35.1 InRelease [2,555 B]
Hit:2 https://repo.download.nvidia.com/jetson/t234 r35.1 InRelease
Get:3 https://repo.download.nvidia.com/jetson/common r35.1/main arm64 Packages [18.7 kB]
Err:3 https://repo.download.nvidia.com/jetson/common r35.1/main arm64 Packages
File has unexpected size (19134 != 18667). Mirror sync in progress? [IP: 172.30.7.176 912]
Hashes of expected file:

  • Filesize:18667 [weak]
  • SHA256:7d90c4f673d6097a4641214c84dece042b4884cb47e0a74e8c1c2135e9859317
  • SHA1:563b2b35beb8e1cd78e6219b2b91a1a3b7cf1006 [weak]
  • MD5Sum:21b972e88f723e05f145ea802b9b0428 [weak]
    Release file created at: Mon, 15 Aug 2022 18:31:52 +0000
    Hit:4 Index of /ubuntu-ports focal InRelease
    Hit:5 Index of /ubuntu-ports focal-updates InRelease
    Hit:6 Index of /ubuntu-ports focal-backports InRelease
    Hit:7 Index of /ubuntu-ports focal-security InRelease
    Fetched 2,555 B in 1s (2,387 B/s)
    Reading package lists… Done
    E: Failed to fetch https://repo.download.nvidia.com/jetson/common/dists/r35.1/main/binary-arm64/Packages.gz File has unexpected size (19134 != 18667). Mirror sync in progress? [IP: 172.30.7.176 912]
    Hashes of expected file:
    - Filesize:18667 [weak]
    - SHA256:7d90c4f673d6097a4641214c84dece042b4884cb47e0a74e8c1c2135e9859317
    - SHA1:563b2b35beb8e1cd78e6219b2b91a1a3b7cf1006 [weak]
    - MD5Sum:21b972e88f723e05f145ea802b9b0428 [weak]
    Release file created at: Mon, 15 Aug 2022 18:31:52 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

Yes just from apt-get update. It could be related to the physical location and mirrors not being synced.

any solution?

Seems like nvidia is an old tired horse, no wonder their stock is sinking

Maybe try VPN change the location to try.

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