Cuda installation issues

Hi,
At the end of installation, I got the following errors(1). As asked, I tried to install manually CUDA on Xavier but it didn’t work(2). I notice that Xavier is an ‘aarch64 GNU/Linux architecture’ and I couldn’t find this kind of package.
Could you tell me how to resolve these issues, please.
Thanks in advance.

(1)
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
Connection to 10.0.0.2 closed.
dpkg-query: package ‘cuda-toolkit-10-0’ is not installed and no information is available
dpkg-query: package ‘libfreeimage-dev’ is not installed and no information is available
dpkg-query: package ‘libopenmpi-dev’ is not installed and no information is available
dpkg-query: package ‘openmpi-bin’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
1
Error: CUDA cannot be installed on device. This may be caused by other apt-get command running on device when installing CUDA. Please use apt-get command in a terminal to make sure following packages are installed correctly on device before continuing:
cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin
After these packages are installed on device, press Enter key to continue

(2)
nvidia@jetson-0:~$ sudo apt-get install cuda-toolkit-10-0
[sudo] password for nvidia:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package cuda-toolkit-10-0

nvidia@jetson-0:~$ sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
dpkg: error processing archive cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb (–install):
package architecture (amd64) does not match system (arm64)
Errors were encountered while processing:
cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb

Just re-flash the device with the JetPack. Make sure to select “install cuda” among the target-installable libraries in the GUI.

Thanks a lot for your reply.

As noted in the following errors, I just realized that my Xavier Device is not correctly connected to wifi network.
Err:3 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Could not resolve ‘ports.ubuntu.com

You need to connect using wired Ethernet for the Jetpack installation to work.

Yes, I did. My Xavier Device is flashed, now.
Thanks a lot for your help.