Sources.list file for the image file of Jetson Nano

Hi there,

I am using jetson nano for development.
I somehow changed the sources.list file while developing .

Now when I ran sudo apt-get update

it always end up with error.

Can anyone give me the correct working sources.list file

You should at least tell what kind of error is that and what does your source list file look like now.

Thanks for your reply.

while I ran

sudo apt-get update I got these as my output lines

Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]               
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]  
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]    
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Get:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages [975 kB]     
Ign:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages              
Ign:29 http://archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu bionic/universe arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 DEP-11 Metadata [284 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 DEP-11 Metadata [284 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 DEP-11 Metadata [284 kB]
Ign:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages
Ign:37 http://archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages
Get:38 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 DEP-11 Metadata [289 kB]
Ign:39 http://archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages
Get:40 http://archive.ubuntu.com/ubuntu bionic-backports/universe arm64 DEP-11 Metadata [9,292 B]
Ign:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages              
Ign:29 http://archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages       
Ign:30 http://archive.ubuntu.com/ubuntu bionic/universe arm64 Packages         
Ign:31 http://archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages       
Ign:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages 
Ign:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages
Ign:37 http://archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages   
Ign:39 http://archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages
Ign:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages              
Ign:29 http://archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages       
Ign:30 http://archive.ubuntu.com/ubuntu bionic/universe arm64 Packages         
Ign:31 http://archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages       
Ign:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages 
Get:22 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Ign:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages
Ign:37 http://archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages   
Ign:39 http://archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages
Err:5 http://archive.ubuntu.com/ubuntu bionic/main arm64 Packages
  404  Not Found [IP: 2001:67c:1360:8001::24 80]
Ign:29 http://archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu bionic/universe arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages
Err:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages 
  404  Not Found [IP: 2001:67c:1360:8001::24 80]
Ign:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages
Get:41 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [42.3 kB]
Err:37 http://archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages   
  404  Not Found [IP: 2001:67c:1360:8001::24 80]
Ign:39 http://archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages
Fetched 1,049 kB in 7s (143 kB/s)                                              
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1360:8001::24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1360:8001::24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages  404  Not Found [IP: 2001:67c:1360:8001::24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

and Here is how my sources.list file looks like

#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates restricted main
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports restricted main
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security restricted main

Stuck with this for 2 two days please help me out to solve this

Regards,
Arunkumar

This is the default apt source list from my jetson. You can remove your current one and add those back.

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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/ bionic universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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/ bionic multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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/ bionic-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

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

Thank you for your help.

I replaced it with my sources.list file
sudo apt-get update ran without error.

But Still getting doubt whether this is correct or not??

Is there any possibilities that this file will be get altered If I install some packages in future??

Generally, apt source list should not be changed by installing a package.

Okay thank you for your help.
:-)

Regards,
Arunkumar

Incidentally, this particular example (it is from the fail log):
http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages
…would function from a web browser as well if it is expected to succeed. I see a failure due to the particular file not existing on that server. You have to go all the way back to this to find a working hit on that server:
http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/

This in turn means the server itself is not supporting binary arm64. Since the server is owned by the Ubuntu people, this is not something NVIDIA could change. I am only speculating, but perhaps this server used to also provide binary arm64 packages, and then stopped serving this or moved it to a new URL.

If a particular server does not support binary arm64, then this may not be a problem. It is possible that another server provides this, and that whatever software fails to update from here, that the same software might be succeeding elsewhere on one of the other servers. The time when it really matters is when you run into a package in need of update, but failing to update. It won’t really matter which server the update is from if there are multiple servers and just one of them supports that package. If updates prevent something from installing which you need, then you’d have to find out where the new update is at.