Errors during adding of Nvidia repository and installing Nvidia drivers

Hello,

While following along with the following guides:


https://docs.nvidia.com/ngc/ngc-titan-setup-guide/index.html

Specifically, the portion regarding the installation and setup of NGC and DIGITS,


https://docs.nvidia.com/ngc/ngc-titan-setup-guide/index.html#installing-nvidia-driver

$ sudo apt-get install -y apt-transport-https curl
$ cat <<EOF | sudo tee /etc/apt/sources.list.d/cuda.list > /dev/null
deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /
EOF
$ curl -s \
 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub \
 | sudo apt-key add -
$ cat <<EOF | sudo tee /etc/apt/preferences.d/cuda > /dev/null
Package: *
Pin: origin developer.download.nvidia.com
Pin-Priority: 600
EOF
$ sudo apt-get update && sudo apt-get install -y --no-install-recommends cuda-drivers
$ sudo reboot

The final command:

sudo apt-get update && sudo apt-get install -y --no-install-recommends cuda-drivers

Returns a series of ‘Failed to fetch’ errors:

Get:1 file:/var/cuda-repo-9-0-local  InRelease
Ign:1 file:/var/cuda-repo-9-0-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-9-0-local  Release [574 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:5 file:/var/cuda-repo-9-0-local  Release [574 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Hit:13 http://us.archive.ubuntu.com/ubuntu xenial InRelease                    
Ign:15 http://dl.google.com/linux/chrome/deb stable InRelease                  
Ign:18 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Hit:19 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
Ign:20 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages          
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages      
Ign:22 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Hit:23 http://dl.google.com/linux/chrome/deb stable Release                    
Get:16 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]    
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
Ign:20 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:22 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages    
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [785 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [720 kB]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages  
Get:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [325 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [319 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [224 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [632 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [578 kB]
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [254 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [246 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [331 kB]
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:39 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]
Ign:20 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:22 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:41 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:43 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,096 B]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:20 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign:21 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Get:44 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [501 kB]
Ign:22 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages    
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:45 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [445 kB]
Ign:46 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages   
Get:47 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [216 kB]
Get:48 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:49 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:50 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [352 kB]
Get:51 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [302 kB]
Ign:52 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:53 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [131 kB]
Get:54 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign:42 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:55 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [147 kB]
Ign:56 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:46 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:52 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:56 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:46 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:52 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:56 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Err:46 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404  Not Found [IP: 91.189.88.149 80]
Ign:52 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:56 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Fetched 323 kB in 2s (154 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

This results in the inability to confirm installation after reboot by the nvidia-smi command. Are the files no longer hosted in those locations?

I feel like I may be missing something. Any help resolving this would be greatly appreciated!
Thank you so much, in advance.

There is another thread with a similar issue (failing to fetch from these locations):
https://devtalk.nvidia.com/default/topic/1035797/jetson-tx2/problems-installing-jetpack-on-jetson-tx2/1

However, I have already been able to install Jetpack 3.2, and have set up the TX2 Developer Kit. It is running, and seems to be running just fine.

Hi,

Do you have an NVIDIA graphics card on your host?

Could you check if you can install CUDA driver from following instruction?

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt-get install nvidia-390
nvidia-smi

Thanks

Hello,

The first command ran straightforwardly,

The second

sudo apt update

lead to some of the same “failed to fetch” errors for what looked like the same domains as the above post.

The third command ran straightforwardly.

Some weird boot issues the first couple times after the driver installation, but now I am able to boot into Ubuntu and see things.

Here is my nvidia-smi output:

nvidia-smi
Sun Jun 10 14:24:51 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.67                 Driver Version: 390.67                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1080    Off  | 00000000:01:00.0  On |                  N/A |
|  0%   38C    P0    42W / 215W |    214MiB /  8117MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1398      G   /usr/lib/xorg/Xorg                           165MiB |
|    0      2003      G   compiz                                        47MiB |
+-----------------------------------------------------------------------------+

I’m also seeing the same errors when I attempt to install docker, as per the guide https://github.com/dusty-nv/jetson-inference#system-setup

Installing Docker
Install prerequisites, install the GPG key, and add the Docker repository.

sudo apt-get install -y ca-certificates curl software-properties-common
[sudo] password for jared: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version (20170717~16.04.1).
curl is already the newest version (7.47.0-1ubuntu2.8).
software-properties-common is already the newest version (0.96.20.7).
0 upgraded, 0 newly installed, 0 to remove and 94 not upgraded.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK
sudo add-apt-repository \
>  "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
>   sudo apt-key add -
OK
curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/nvidia-docker.list | \
>   sudo tee /etc/apt/sources.list.d/nvidia-docker.list
deb https://nvidia.github.io/libnvidia-container/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu16.04/$(ARCH) /

Here again, when I run apt-get update, I can’t fetch those certain packages:

sudo apt-get update
Get:1 file:/var/cuda-repo-9-0-local  InRelease
Ign:1 file:/var/cuda-repo-9-0-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-9-0-local  Release [574 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:5 file:/var/cuda-repo-9-0-local  Release [574 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Get:6 file:/var/visionworks-repo  Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2,008 B]
Ign:13 http://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:14 http://us.archive.ubuntu.com/ubuntu xenial InRelease                    
Hit:15 http://dl.google.com/linux/chrome/deb stable Release                    
Get:16 https://download.docker.com/linux/ubuntu xenial InRelease [65.8 kB]     
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
Get:18 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]    
Hit:19 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease   
Get:21 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease [1,106 B]
Get:22 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease [1,136 B]
Get:23 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease [1,129 B]
Get:24 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [3,653 B]
Get:25 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  Packages [4,196 B]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
Get:27 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  Packages [5,568 B]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages          
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages      
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:31 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  Packages [5,772 B]
Ign:32 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages          
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages      
Hit:33 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages    
Get:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [785 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [720 kB]
Ign:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages  
Get:38 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [325 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [319 kB]
Get:40 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [229 kB]
Get:41 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [633 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [579 kB]
Ign:43 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:44 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [254 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [246 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [331 kB]
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:48 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages          
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:49 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:50 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Ign:51 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:52 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,100 B]
Get:53 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [502 kB]
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages    
Ign:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages  
Ign:43 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:28 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404  Not Found [IP: 91.189.91.26 80]
Ign:29 http://us.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:49 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:51 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:54 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [445 kB]
Ign:55 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages   
Get:56 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [216 kB]
Get:57 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:58 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:59 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [352 kB]
Get:60 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [302 kB]
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:62 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [132 kB]
Get:63 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]
Ign:30 http://us.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages    
Ign:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:43 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:49 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:51 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages  
  404  Not Found [IP: 91.189.91.26 80]
Ign:43 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:49 http://us.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404  Not Found [IP: 91.189.91.26 80]
Ign:51 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:64 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [142 kB]
Ign:65 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:55 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:65 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:55 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:65 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Err:55 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404  Not Found [IP: 91.189.88.152 80]
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:65 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Fetched 411 kB in 1s (225 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I get some similar problems for the next part of docker installation:

sudo apt-get install -y nvidia-docker2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aufs-tools cgroupfs-mount docker-ce git git-man liberror-perl
  libnvidia-container-tools libnvidia-container1 nvidia-container-runtime
  nvidia-container-runtime-hook pigz
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-ce git git-man liberror-perl
  libnvidia-container-tools libnvidia-container1 nvidia-container-runtime
  nvidia-container-runtime-hook nvidia-docker2 pigz
0 upgraded, 12 newly installed, 0 to remove and 94 not upgraded.
Need to get 40.4 MB of archives.
After this operation, 217 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 pigz amd64 2.3.1-2 [61.1 kB]
Get:2 https://download.docker.com/linux/ubuntu xenial/stable amd64 docker-ce amd64 18.03.1~ce-0~ubuntu [34.0 MB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 git-man all 1:2.7.4-0ubuntu1.3
Err:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.3
  404  Not Found [IP: 91.189.91.23 80]
Ign:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 git-man all 1:2.7.4-0ubuntu1.3
Get:8 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  libnvidia-container1 1.0.0~rc.1-1 [55.9 kB]
Err:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.3
  404  Not Found [IP: 91.189.91.23 80]
Get:9 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  libnvidia-container-tools 1.0.0~rc.1-1 [14.9 kB]
Get:10 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  nvidia-container-runtime-hook 1.3.0-1 [576 kB]
Err:6 http://security.ubuntu.com/ubuntu xenial-security/main i386 git-man all 1:2.7.4-0ubuntu1.3
  404  Not Found [IP: 91.189.91.23 80]
Err:6 http://security.ubuntu.com/ubuntu xenial-security/main i386 git-man all 1:2.7.4-0ubuntu1.3
  404  Not Found [IP: 91.189.91.23 80]
Get:11 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  nvidia-container-runtime 2.0.0+docker18.03.1-1 [1,726 kB]
Get:12 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  nvidia-docker2 2.0.3+docker18.03.1-1 [2,892 B]
Fetched 36.6 MB in 7s (5,179 kB/s)                                             
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_2.7.4-0ubuntu1.3_all.deb  404  Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git_2.7.4-0ubuntu1.3_amd64.deb  404  Not Found [IP: 91.189.91.23 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

The final command in the section, to change the permissions to not require sudo for docker

sudo usermod -aG docker $USER
usermod: group 'docker' does not exist

Hi,

Could you try if the upgrade command helps?

sudo apt upgrade
sudo apt update

Thanks.

Or the reverse order:

sudo apt update
sudo apt-get upgrade

Then verify these are still valid:

sha1sum -c /etc/nv_tegra_release

regarding the nvidia docker installation: you may try:

purge docker*

and then try again