JetPack 4.6 sudo apt update error

After flashed my sd card with Jetpack 4.6 and logined into Ubuntu, then executed ‘sudo apt update’ and got the following error:

ubuntu@ubuntu-desktop:~$ sudo apt update
Get:1 file:/var/cuda-repo-l4t-10-2-local InRelease
Ign:1 file:/var/cuda-repo-l4t-10-2-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-l4t-10-2-local Release [564 B]
Get:6 file:/var/visionworks-repo Release [2,001 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,005 B]
Get:5 file:/var/cuda-repo-l4t-10-2-local Release [564 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,010 B]
Get:6 file:/var/visionworks-repo Release [2,001 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,005 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,010 B]
Hit:11 Index of /ubuntu-ports bionic InRelease
Hit:14 Index of /ubuntu-ports bionic-updates InRelease
Hit:15 https://repo.download.nvidia.cn/jetson/t210 r32.6 InRelease
Get:12 https://repo.download.nvidia.cn/jetson/common r32.6 InRelease [2,555 B]
Hit:17 Index of /ubuntu-ports bionic-backports InRelease
Hit:18 Index of /ubuntu-ports bionic-security InRelease
Get:19 https://repo.download.nvidia.cn/jetson/common r32.6/main arm64 Packages [16.7 kB]
Err:19 https://repo.download.nvidia.cn/jetson/common r32.6/main arm64 Packages
File has unexpected size (16319 != 16692). Mirror sync in progress? [IP: 112.4.101.73 443]
Hashes of expected file:

  • Filesize:16692 [weak]
  • SHA256:cb089d433da11a95f022ded2bffc0e472932a7c5923bd1f0ae5a7bb3de607ed0
  • SHA1:51ca3df5833cc4d42c5551437cb62acc1c9080c5 [weak]
  • MD5Sum:f1abbcdf491424e2ff63219e4c1f11d9 [weak]
    Release file created at: Thu, 21 Oct 2021 09:04:33 +0000
    Fetched 2,555 B in 3s (1,016 B/s)
    Reading package lists… Done
    E: Failed to fetch https://repo.download.nvidia.cn/jetson/common/dists/r32.6/main/binary-arm64/Packages.gz File has unexpected size (16319 != 16692). Mirror sync in progress? [IP: 112.4.101.73 443]
    Hashes of expected file:
    - Filesize:16692 [weak]
    - SHA256:cb089d433da11a95f022ded2bffc0e472932a7c5923bd1f0ae5a7bb3de607ed0
    - SHA1:51ca3df5833cc4d42c5551437cb62acc1c9080c5 [weak]
    - MD5Sum:f1abbcdf491424e2ff63219e4c1f11d9 [weak]
    Release file created at: Thu, 21 Oct 2021 09:04:33 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

I executed ‘sudo apt install ntpdate’, and also downloaded and executed this shell script: jetcard/jetson_add_ntp_server.sh at master · NVIDIA-AI-IOT/jetcard · GitHub , but the error is still there, this has blocked me to install other software.
My time & date setting is as the following:

2 Likes

hello akachen,

we cannot reproduce the issue locally, this should related to the server issue,
i.e. https://repo.download.nvidia.cn/

could you please try revise the repo for verification.
thanks

How to revise the repo ?

Hi user30659,

Please open the apt source configuration file:
$ sudo vi /etc/apt/sources.list.d/nvidia-l4t-apt-source.list

And check the command would be:

deb https://repo.download.nvidia.com/jetson/common r32.6 main
deb https://repo.download.nvidia.com/jetson/t194 r32.6 main

Run ‘apt update’ again. Thanks!

Thanks, now ‘sudo apt update’ can run well, I did nothing since yesterday after I reported this case, as you said, it looks like your server has problem yesterday.
You can close this case now, thanks.

1 Like

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