Apt update failing with "E: Failed to fetch"

Whenever I run sudo apt-get update I get the following errors and I’m not sure what to do:

Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Ign:5 http://ports.ubuntu.com/ubuntu-ports bionic/main amd64 Packages
Ign:6 http://ports.ubuntu.com/ubuntu-ports bionic/restricted amd64 Packages
Ign:7 http://ports.ubuntu.com/ubuntu-ports bionic/universe amd64 Packages
Ign:8 http://ports.ubuntu.com/ubuntu-ports bionic/multiverse amd64 Packages
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages [2,729 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages [2,729 kB]
Ign:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages  
Ign:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted amd64 Packages
Ign:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse amd64 Packages
Ign:5 http://ports.ubuntu.com/ubuntu-ports bionic/main amd64 Packages          
Ign:6 http://ports.ubuntu.com/ubuntu-ports bionic/restricted amd64 Packages    
Ign:7 http://ports.ubuntu.com/ubuntu-ports bionic/universe amd64 Packages      
Ign:8 http://ports.ubuntu.com/ubuntu-ports bionic/multiverse amd64 Packages    
Ign:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages  
Ign:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted amd64 Packages
Ign:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse amd64 Packages
Ign:5 http://ports.ubuntu.com/ubuntu-ports bionic/main amd64 Packages
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic/restricted amd64 Packages [13.5 kB]
Ign:6 http://ports.ubuntu.com/ubuntu-ports bionic/restricted amd64 Packages    
Ign:7 http://ports.ubuntu.com/ubuntu-ports bionic/universe amd64 Packages
Ign:8 http://ports.ubuntu.com/ubuntu-ports bionic/multiverse amd64 Packages    
Ign:16 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main amd64 Packages
Ign:17 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe amd64 Packages
Ign:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages  
Ign:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted amd64 Packages
Ign:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse amd64 Packages
Err:5 http://ports.ubuntu.com/ubuntu-ports bionic/main amd64 Packages          
  404  Not Found [IP: 185.125.190.39 80]
Ign:6 http://ports.ubuntu.com/ubuntu-ports bionic/restricted amd64 Packages    
Ign:7 http://ports.ubuntu.com/ubuntu-ports bionic/universe amd64 Packages
Ign:8 http://ports.ubuntu.com/ubuntu-ports bionic/multiverse amd64 Packages
Ign:16 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main amd64 Packages
Ign:17 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe amd64 Packages
Err:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:12 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted amd64 Packages
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages [10.6 MB]
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages [10.6 MB]
Ign:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe amd64 Packages
Ign:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse amd64 Packages
Ign:20 http://ports.ubuntu.com/ubuntu-ports bionic-security/main amd64 Packages
Ign:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted amd64 Packages
Ign:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe amd64 Packages
Ign:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse amd64 Packages
Ign:16 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main amd64 Packages
Ign:17 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe amd64 Packages
Ign:20 http://ports.ubuntu.com/ubuntu-ports bionic-security/main amd64 Packages
Ign:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted amd64 Packages
Ign:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe amd64 Packages
Ign:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse amd64 Packages
Err:16 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:17 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe amd64 Packages
Ign:20 http://ports.ubuntu.com/ubuntu-ports bionic-security/main amd64 Packages
Ign:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted amd64 Packages
Ign:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe amd64 Packages
Ign:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse amd64 Packages
Err:20 http://ports.ubuntu.com/ubuntu-ports bionic-security/main amd64 Packages
  404  Not Found [IP: 185.125.190.39 80]
Ign:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted amd64 Packages
Ign:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe amd64 Packages
Ign:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse amd64 Packages
Fetched 252 kB in 2s (111 kB/s)
Reading package lists... Done
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

You may precise if you’re seeing this:

  1. From host for using SDKM (some server maintenance may result in this, retrying later may be enough).
  2. From Jetson. In this case arch amd64 is wrong. Jetsons use (for most recent ones) arm64 arch packages.

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