How to run Ubuntu 22.04 on the Jetson Nano

Hello to everyone.

I’ve just installed ubuntu 22.04 on my jetson nano. Docker does not work on 22.04,but it works on ubuntu 18.04 and 20.04. I used the same kernel version for ubuntu 18,20 and 22. This :

Linux marietto-nano 4.9.299+ #0 SMP PREEMPT Wed Mar 29 14:22:17 CEST 2023 aarch64 aarch64 aarch64 GNU/Linux

so it’s not its fault if it does not work. I suppose there is some incompatibility between some component present only on ubuntu 22.04 and not on ubuntu 18 and 20. The error is the following :

# docker images

REPOSITORY    TAG       IMAGE ID       CREATED         SIZE
hello-world   latest    46331d942d63   13 months ago   9.14kB

# docker run hello-world

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown.
ERRO[0004] error waiting for container: context canceled

I don’t know what to do. I even tried to upgrade the docker container files following this guide :

https://www.server-world.info/en/note?os=Ubuntu_22.04&p=nvidia&f=2

so,this is what I did :

# curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add -
OK

# curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu22.04/nvidia-docker.list > /etc/apt/sources.list.d/nvidia-docker.list

# apt upgrade

Before the upgrade I had these versions :

nvidia-docker2/stable,now 2.8.0-1 all
nvidia-container-toolkit/stable,now 1.7.0-1 arm64

after :

nvidia-docker2/bionic 2.13.0-1 all
nvidia-container-toolkit/bionic 1.13.1-1 arm64
nvidia-container-toolkit-base/bionic 1.13.1-1 arm64

they have been upgraded,but I still see that those packages come from bionic,but I’ve used the repos of jammy

# curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu22.04/nvidia-docker.list > /etc/apt/sources.list.d/nvidia-docker.list

This is the content of the file /etc/docker/daemon.json :

{
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

I’m using the JetPack 4.6.3 / L4T 32.7.3. runc version is :

# runc --version

runc version 1.1.4-0ubuntu1~22.04.1
spec: 1.0.2-dev
go: go1.18.1
libseccomp: 2.5.3

docker version is :

# docker --version
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.3

And anyway,even with the packages upgraded,the error hasn’t been fixed.

As a further experiment,I have purged all the packages installed for ubuntu 22.04 and I have installed the versions of the same packages which works for ubuntu 20.04. They are called like this :

cgroup-tools_0.41-10_arm64.deb
docker.io_20.10.21-0ubuntu1~20.04.1_arm64.deb
containerd_1.6.12-0ubuntu1~20.04.1_arm64.deb
runc_1.1.4-0ubuntu1~20.04.1_arm64.deb

but,I’ve got the same exact error as before :

root@marietto-nano:/home/marietto# docker run hello-world

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown.
ERRO[0000] error waiting for container: context canceled 

On the github two developers,after having checked the output of the “check-config.sh” script :

root@marietto-nano:/home/marietto/Scaricati# ./check-config.sh

info: reading kernel config from /proc/config.gz ...

Generally Necessary:
- cgroup hierarchy: cgroupv2
  Controllers:
  **- cpu: missing
  - cpuset: missing**
  - io: available
  - memory: available
  - pids: available
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_NETFILTER_XT_MARK: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_POSIX_MQUEUE: enabled
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_SECCOMP_FILTER: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: missing
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: enabled
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_IP_NF_TARGET_REDIRECT: enabled (as module)
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_PROTO_TCP: enabled
- CONFIG_IP_VS_PROTO_UDP: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_SECURITY_SELINUX: missing
- CONFIG_SECURITY_APPARMOR: missing
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: enabled
    - CONFIG_BRIDGE_VLAN_FILTERING: enabled
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled
      - CONFIG_CRYPTO_GCM: enabled
      - CONFIG_CRYPTO_SEQIV: enabled
      - CONFIG_CRYPTO_GHASH: enabled
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled
      - CONFIG_XFRM_ALGO: enabled
      - CONFIG_INET_ESP: enabled (as module)
      - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
  - "ipvlan":
    - CONFIG_IPVLAN: enabled
  - "macvlan":
    - CONFIG_MACVLAN: enabled (as module)
    - CONFIG_DUMMY: enabled
  - "ftp,tftp client in container":
    - CONFIG_NF_NAT_FTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_FTP: enabled (as module)
    - CONFIG_NF_NAT_TFTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
- Storage Drivers:
  - "btrfs":
    - CONFIG_BTRFS_FS: enabled (as module)
    - CONFIG_BTRFS_FS_POSIX_ACL: enabled
  - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled
    - CONFIG_DM_THIN_PROVISIONING: missing
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled (as module)
  - "zfs":
    - /dev/zfs: missing
    - zfs command: available
    - zpool command: available

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

told me :


It looks like you have only partial support of cgroupv2. Can you try disabling it by setting the kernel command-line argument `systemd.unified_cgroup_hierarchy=0`?

ok. I did that. This is now my extlinux.conf :

TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} root=PARTUUID=5ac80d7c-40fb-4796-bd56-4110e389819b rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
      #APPEND ${cbootargs} root=/dev/sda1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
       APPEND systemd.unified_cgroup_hierarchy=0

LABEL backup
    MENU LABEL backup kernel
    LINUX /boot/Image
    INITRD /boot/initrd
    APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0

But Jetson nano reboots in loop before to really boot. What’s missing ? I think that the latter could be the right thing to do.

This is the error to fix :

cgroup: cgroup2: unknown option "nsdelegate,memory_recursiveprot"
cgroup: cgroup2: unknown option "nsdelegate"
cgroup: cgroup: disabling cgroup2 socket matching due to net_prio or net_cls activatn

I can’t append the parameter “systemd.unified_cgroup_hierarchy=0” to extlinux.conf because if I do this,the jetson nano will not boot at all. Now that you have the exact error,can you help me to fix the bug ? I think there is a bug well described here :

https://launchpadlibrarian.net/487736782/0001-UBUNTU-SAUCE-Revert-netprio_cgroup-Fix-unlimited-mem.patch

Sorry to tell the upstream kernel and Ubuntu 22.04 is out of support scope. Hope other developers can help to share experiences.

We have different perspectives and conveniences, and yours is not the same as mine (and ours,as end users). I am an end user always short of money and for this I try to make the life of my board last as long as possible. Your perspective is the same as that of nvidia’s, i.e. pushing me to buy new hardware more expensive than the previous one. But I can not. Besides, I don’t need Orin (even if I’m intrigued :P). The Nano is just fine for me. It’s just ridiculous to install ubuntu 18 on it, because it is too old. So, you don’t have to provide help (but it’s stupid,from my point of view don’t do it because your help given as a geek, not as an nvidia employee,would make the nano more interesting and would help to continue its shopping and I think that this does not have a direct and negative impact on the purchases of the jetsons orin because orin is newer and also created for different usages,anyway), but maybe there are developers and geeks who want to participate. This message is aimed to those users,who, like me, want to give a real value to the hardware they buy and don’t let themselves be convinced to buy new hardware just to get more support when it became a little old.

5 Likes

I’ve found the fix for the docker’s problem. Is to append the parameter “systemd.unified_cgroup_hierarchy=0” to the kernel cmdline like this :

APPEND ${cbootargs} root=/dev/sda1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 systemd.unified_cgroup_hierarchy=0

and not to use another append line like I did before :

       APPEND systemd.unified_cgroup_hierarchy=0

it was so easy to fix it,but no one focused my attention on that trivial error. That’s bad.

Anyway,now Docker works on ubuntu 22.04 :


marietto@marietto-nano:~$ docker images

REPOSITORY                   TAG       IMAGE ID       CREATED         SIZE
nvcr.io/nvidia/l4t-jetpack   r35.3.1   ff2dd43d5687   2 weeks ago     9.77GB
hello-world                  latest    46331d942d63   13 months ago   9.14kB

marietto@marietto-nano:~$ docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (arm64v8)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

the idea here is to use an updated version of ubuntu /22.04/ for general use and a previous installation of ubuntu (like the 20.04) to run the applications which needs to access the jetson’s nano gpu.

2 Likes

The “Jetson’s Nano Frankenstein” project continue…

root@marietto-nano:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

root@marietto-nano:/# glxinfo | egrep -i '(version|nvidia)'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Version: 22.2.5
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.2.5
OpenGL core profile shading language version string: 4.50
OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.2.5
OpenGL shading language version string: 4.50
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, 

root@marietto-nano:/# uname -a
Linux marietto-nano 4.9.299+ #0 SMP PREEMPT Wed Mar 29 14:22:17 CEST 2023 aarch64 aarch64 aarch64 GNU/Linux

1 Like
root@marietto-nano:/home/marietto/Scaricati/jetsonUtilities# python jetsonInfo.py 

NVIDIA NVIDIA Jetson Nano Developer Kit
 L4T 32.7.3 [ JetPack 4.6.3 ]
   Ubuntu 22.04.2 LTS
   Kernel Version: 4.9.299+
 CUDA 10.2.300
   CUDA Architecture: 5.3
 OpenCV version: 4.6.0
   OpenCV Cuda: Yes
 CUDNN: 8.2.1.32
 TensorRT: 8.2.1.9
 Vision Works: 1.6.0.501
 VPI: 1.2.3
 Vulcan: 1.3.204
3 Likes

Wonderful preventing more e-waste. I’ve been following Armbian for this device as well, however, I believe they need help to get this working. I also agree this is a fantastic device that should have some way to get some support for the dev community to upgrade.

2 Likes

I have upgraded and hacked my build as well. Working on maintaining a newer system. I have a few areas I need to work on to keep it working. Docker was one of them and will try what you have here.

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

1 Like

We can collaborate. I also have some areas that need to be fixed,here. What are your broken areas ?

1 Like

For docker working again you will needed back default to iptable legacy

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

Try start docker service or reboot .

The reason docker doesn’t work it’s the NAT stuff with nfs-table by default now not working correctly with docker structure .

For the GPU working blobs fine you needed downgrade to Xorg server core 1.20.x package
The xorg 1.21 are broken due some changes that needed for this driver loading/running.

My recomendation you will needed sudo apt-mark hold xorg 1.21 from ubuntu 22.04 for not update again and breaking gpu stuff.

I’m working on an image with Ubuntu 22.04 base with some tweaks running with GUI budgie , Enable CPU 2,0ghz and the GPU 1,2ghz máx peak , chromium 112 running webgl samples fine . enable flatpak gpu stuff and other small stuff

3 Likes

Sure! I’d love to keep these alive and working! I love this device and it’s performance is quite good compared to even a Rpi4 (even though the CPU is slower.)

I’m working on unlocking Docker, and the GPU right now. I’m not sure how you modified the kernel cli as I’m used to PCs and VMs vs custom SBCs like this.

I had considered joining the Armbian team trying to make a sustainable distro for this device. I like Debian quite a bit and it appears they have something mostly working but not enough for full support.

It seems that everything is working for me with ubuntu 22.04. Now I’m trying to upgrade CUDA 10 to 11. What are the problems that you have ?

1 Like

Yes, Next would be to look at debian also a good base there with bullseye and above but you will have to patch dpkg to support zstd compression GitHub - tmiland/dpkg-zstd-patches: zstd decompression support for Debian

Deb nvidia /ota packages are compress with zstd when trying to install them under debian fails by default because dpkg in debian does not support zstd.

1 Like

The commit broken GPU drivers it’s due xandr variables are changed. so it’s too bad in this case for mainline xorg needed reverting this or down to xorg 1.20.x

On ubuntu 22.04 I’m using Xorg vers. 1.21 and it works.

I’m trying to install CUDA 11 since it looks like,according to the tutorial below,that it may have worked as early as 3 years ago (when the jetson orin wasn’t yet created).

Unfortunately it does not work. But I feel that I can fix the error :

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa/cuda-ubuntu1804.pin

sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600

wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb

sudo dpkg -i cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb

sudo apt-key add /var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub

sudo apt-get update

sudo apt install cuda

Reading package list... 
Done Generating Dependency Tree... 
Done Reading status information... 
Some packages cannot be installed. 

This can mean that an impossible situation has been requested or, 
if you are using a distribution under development, 
that some required packages have not yet been created 
or have been removed from Incoming. 

The following information may help resolve the situation:  

The following packages have unmet dependencies:xserver-xorg-video-nvidia-450 : 

Depends: xorg-video-abi-24 but is not installable or
            xorg-video-abi-23 but is not installable or
            xorg-video-abi-20 but is not installable or
            xorg-video-abi-19 but is not installable or          
            xorg-video-abi-18 but is not installable or
            xorg-video-abi-15 but is not installable or         
            xorg-video-abi-14 but is not installable or
            xorg-video-abi-13 but is not installable or
            xorg-video-abi-12 but is not installable or
            xorg-video-abi-11 but is not installable or
            xorg-video-abi-10 but is not installable or
            xorg-video-abi-8 but is not installable or
            xorg-video-abi-6.0 but is not installable

E: Can't fix the problems,there are damaged or blocked packages.

What do you suggest I do ? In the tutorial has not been explained if CUDA 11 has been installed in Ubuntu 18.04,but I suppose he did it. This could explain why it does not work for me : because now I’m using 22.04.

I tried to install CUDA 11 on top of ubuntu 18. This is what happened :

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa/cuda-ubuntu1804.pin

sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600

wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb

sudo dpkg -i cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb

sudo apt-key add /var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub

sudo apt-get update

Scaricamento di:1 file:/var/cuda-repo-l4t-10-2-local  InRelease

Ignorato:1 file:/var/cuda-repo-l4t-10-2-local  InRelease

Scaricamento di:2 file:/var/cuda-repo-ubuntu1804-11-0-local  InRelease

Ignorato:2 file:/var/cuda-repo-ubuntu1804-11-0-local  InRelease

Scaricamento di:3 file:/var/visionworks-repo  InRelease

Ignorato:3 file:/var/visionworks-repo  InRelease

Scaricamento di:4 file:/var/visionworks-sfm-repo  InRelease

Ignorato:4 file:/var/visionworks-sfm-repo  InRelease

Scaricamento di:5 file:/var/visionworks-tracking-repo  InRelease

Ignorato:5 file:/var/visionworks-tracking-repo  InRelease

Scaricamento di:6 file:/var/cuda-repo-l4t-10-2-local  Release [564 B]

Scaricamento di:7 file:/var/cuda-repo-ubuntu1804-11-0-local  Release [564 B]

Scaricamento di:6 file:/var/cuda-repo-l4t-10-2-local  Release [564 B]

Scaricamento di:8 file:/var/visionworks-repo  Release [2,001 B]                    

Scaricamento di:7 file:/var/cuda-repo-ubuntu1804-11-0-local  Release [564 B]                       

Scaricamento di:8 file:/var/visionworks-repo  Release [2,001 B]                                    

Scaricamento di:9 file:/var/visionworks-sfm-repo  Release [2,005 B]                                

Scaricamento di:9 file:/var/visionworks-sfm-repo  Release [2,005 B]                                

Scaricamento di:10 file:/var/visionworks-tracking-repo  Release [2,010 B]                          

Scaricamento di:10 file:/var/visionworks-tracking-repo  Release [2,010 B]                          

Scaricamento di:11 file:/var/cuda-repo-ubuntu1804-11-0-local  Release.gpg [836 B]                  

Scaricamento di:11 file:/var/cuda-repo-ubuntu1804-11-0-local  Release.gpg [836 B]                  

Trovato:12 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                                   

Scaricamento di:13 http://ppa.launchpad.net/pipewire-debian/pipewire-upstream/ubuntu bionic InRelease [21.3 kB]

Ignorato:16 https://esm.ubuntu.com/apps/ubuntu bionic-apps-security InRelease                      

Scaricamento di:18 https://repo.download.nvidia.com/jetson/common r32.7 InRelease [2,555 B]        

Scaricamento di:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]         

Scaricamento di:19 https://repo.download.nvidia.com/jetson/t210 r32.7 InRelease [2,550 B]          

Ignorato:20 https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates InRelease                       

Scaricamento di:15 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [83.3 kB]       

Ignorato:22 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security InRelease                    

Scaricamento di:17 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]        

Ignorato:23 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates InRelease                     

Errore:24 https://esm.ubuntu.com/apps/ubuntu bionic-apps-security Release 
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 185.125.190.24 443]

Errore:26 https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates Release     
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 185.125.190.24 443]

Errore:27 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security Release  
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 185.125.190.24 443]

Errore:28 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates Release   
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 185.125.190.24 443]

Scaricamento di:31 file:/var/cuda-repo-ubuntu1804-11-0-local  Packages [21.9 kB]
Lettura elenco dei pacchetti... Fatto                     

E: Il repository "https://esm.ubuntu.com/apps/ubuntu bionic-apps-security Release" non ha più un file Release.

N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita.

N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.

E: Il repository "https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates Release" non ha più un file Release.

N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita.

N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.

E: Il repository "https://esm.ubuntu.com/infra/ubuntu bionic-infra-security Release" non ha più un file Release.

N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita.

N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.

E: Il repository "https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates Release" non ha più un file Release.

N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita.
N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.

E: Il file Release per http://ppa.launchpad.net/pipewire-debian/pipewire-upstream/ubuntu/dists/bionic/InRelease non è ancora valido (non valido per 35g 13h 6min 9s). Gli aggiornamenti per questo repository non verranno applicati.

E: Il file Release per https://repo.download.nvidia.com/jetson/common/dists/r32.7/InRelease non è ancora valido (non valido per 60g 12h 44min 23s). Gli aggiornamenti per questo repository non verranno applicati.

E: Il file Release per http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease non è ancora valido (non valido per 62g 20h 22min 15s). Gli aggiornamenti per questo repository non verranno applicati.

E: Il file Release per http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease non è ancora valido (non valido per 62g 19h 46min 21s). Gli aggiornamenti per questo repository non verranno applicati.

E: Il file Release per http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease non è ancora valido (non valido per 62g 19h 42min 54s). Gli aggiornamenti per questo repository non verranno applicati.

sudo apt-get -y install cuda

Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto

I seguenti pacchetti aggiuntivi saranno inoltre installati:
  cuda-11-0 cuda-command-line-tools-11-0 cuda-compiler-11-0 cuda-cudart-11-0 cuda-cudart-dev-11-0
  cuda-cuobjdump-11-0 cuda-cupti-11-0 cuda-cupti-dev-11-0 cuda-documentation-11-0
  cuda-driver-dev-11-0 cuda-drivers cuda-drivers-450 cuda-gdb-11-0 cuda-libraries-11-0
  cuda-libraries-dev-11-0 cuda-nsight-compute-11-0 cuda-nsight-systems-11-0 cuda-nvcc-11-0
  cuda-nvdisasm-11-0 cuda-nvml-dev-11-0 cuda-nvprof-11-0 cuda-nvprune-11-0 cuda-nvrtc-11-0
  cuda-nvrtc-dev-11-0 cuda-nvtx-11-0 cuda-runtime-11-0 cuda-samples-11-0 cuda-sanitizer-11-0
  cuda-toolkit-11-0 cuda-tools-11-0 cuda-visual-tools-11-0 dkms libcublas-11-0 libcublas-dev-11-0
  libcufft-11-0 libcufft-dev-11-0 libcurand-11-0 libcurand-dev-11-0 libcusolver-11-0
  libcusolver-dev-11-0 libcusparse-11-0 libcusparse-dev-11-0 libnpp-11-0 libnpp-dev-11-0
  libnvidia-cfg1-450 libnvidia-common-450 libnvidia-compute-450 libnvidia-decode-450
  libnvidia-encode-450 libnvidia-extra-450 libnvidia-fbc1-450 libnvidia-gl-450 libnvidia-ifr1-450
  libnvjpeg-11-0 libnvjpeg-dev-11-0 libxnvctrl0 linux-headers-4.15.0-208
  linux-headers-4.15.0-208-generic linux-headers-generic nsight-compute-2020.1.1
  nsight-systems-linux-tegra-public-2021.5.4.19-e642d4b nvidia-compute-utils-450 nvidia-dkms-450
  nvidia-driver-450 nvidia-kernel-common-450 nvidia-kernel-source-450 nvidia-modprobe nvidia-prime
  nvidia-settings nvidia-utils-450 screen-resolution-extra xserver-xorg-video-nvidia-450
I seguenti pacchetti NUOVI saranno installati:
  cuda cuda-11-0 cuda-command-line-tools-11-0 cuda-compiler-11-0 cuda-cudart-11-0
  cuda-cudart-dev-11-0 cuda-cuobjdump-11-0 cuda-cupti-11-0 cuda-cupti-dev-11-0
  cuda-documentation-11-0 cuda-driver-dev-11-0 cuda-drivers cuda-drivers-450 cuda-gdb-11-0
  cuda-libraries-11-0 cuda-libraries-dev-11-0 cuda-nsight-compute-11-0 cuda-nsight-systems-11-0
  cuda-nvcc-11-0 cuda-nvdisasm-11-0 cuda-nvml-dev-11-0 cuda-nvprof-11-0 cuda-nvprune-11-0
  cuda-nvrtc-11-0 cuda-nvrtc-dev-11-0 cuda-nvtx-11-0 cuda-runtime-11-0 cuda-samples-11-0
  cuda-sanitizer-11-0 cuda-toolkit-11-0 cuda-tools-11-0 cuda-visual-tools-11-0 dkms libcublas-11-0
  libcublas-dev-11-0 libcufft-11-0 libcufft-dev-11-0 libcurand-11-0 libcurand-dev-11-0
  libcusolver-11-0 libcusolver-dev-11-0 libcusparse-11-0 libcusparse-dev-11-0 libnpp-11-0
  libnpp-dev-11-0 libnvidia-cfg1-450 libnvidia-common-450 libnvidia-compute-450
  libnvidia-decode-450 libnvidia-encode-450 libnvidia-extra-450 libnvidia-fbc1-450
  libnvidia-gl-450 libnvidia-ifr1-450 libnvjpeg-11-0 libnvjpeg-dev-11-0 libxnvctrl0
  linux-headers-4.15.0-208 linux-headers-4.15.0-208-generic linux-headers-generic
  nsight-compute-2020.1.1 nsight-systems-linux-tegra-public-2021.5.4.19-e642d4b
  nvidia-compute-utils-450 nvidia-dkms-450 nvidia-driver-450 nvidia-kernel-common-450
  nvidia-kernel-source-450 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-450
  screen-resolution-extra xserver-xorg-video-nvidia-450
0 aggiornati, 73 installati, 0 da rimuovere e 0 non aggiornati.

È necessario scaricare 79.3 MB/1,550 MB di archivi.

Dopo quest'operazione, verranno occupati 4,135 MB di spazio su disco.

Scaricamento di:1 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-cudart-11-0 11.0.194-1 [124 kB]

Scaricamento di:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 dkms all 2.3-3ubuntu9.7 [68.1 kB]

Scaricamento di:3 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvrtc-11-0 11.0.194-1 [5,926 kB]

Scaricamento di:4 https://repo.download.nvidia.com/jetson/common r32.7/main arm64 nsight-systems-linux-tegra-public-2021.5.4.19-e642d4b arm64 2021.5.4.19-e642d4b [67.3 MB]

Scaricamento di:5 http://ports.ubuntu.com/ubuntu-ports bionic/main arm64 screen-resolution-extra all 0.17.3 [11.7 kB]

Scaricamento di:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 linux-headers-4.15.0-208 all 4.15.0-208.220 [11.0 MB]

Scaricamento di:7 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 linux-headers-4.15.0-208-generic arm64 4.15.0-208.220 [895 kB]

Ignorato:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 linux-headers-generic arm64 4.15.0.208.191

Scaricamento di:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 nvidia-prime all 0.8.16~0.18.04.1 [9,224 B]

Errore:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 linux-headers-generic arm64 4.15.0.208.191
  404  Not Found [IP: 185.125.190.36 80]

Scaricamento di:10 file:/var/cuda-repo-ubuntu1804-11-0-local  libcublas-11-0 11.1.0.229-1 [116 MB]

Scaricamento di:11 file:/var/cuda-repo-ubuntu1804-11-0-local  libcufft-11-0 10.2.0.218-1 [97.9 MB] 

Scaricamento di:12 file:/var/cuda-repo-ubuntu1804-11-0-local  libcurand-11-0 10.2.1.218-1 [39.0 MB]

Scaricamento di:13 file:/var/cuda-repo-ubuntu1804-11-0-local  libcusolver-11-0 10.5.0.218-1 [284 MB]

Scaricamento di:14 file:/var/cuda-repo-ubuntu1804-11-0-local  libcusparse-11-0 11.1.0.218-1 [72.9 MB]

Scaricamento di:15 file:/var/cuda-repo-ubuntu1804-11-0-local  libnpp-11-0 11.1.0.218-1 [56.3 MB]   

Scaricamento di:16 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvjpeg-11-0 11.1.0.218-1 [1,275 kB]

Scaricamento di:17 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-libraries-11-0 11.0.2-1 [2,490 B]

Scaricamento di:18 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-common-450 450.51.05-0ubuntu1 [10.0 kB]

Scaricamento di:19 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-compute-450 450.51.05-0ubuntu1 [9,231 kB]

Scaricamento di:20 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-decode-450 450.51.05-0ubuntu1 [1,077 kB]

Scaricamento di:21 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-encode-450 450.51.05-0ubuntu1 [39.5 kB]

Scaricamento di:22 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-fbc1-450 450.51.05-0ubuntu1 [7,040 B]

Scaricamento di:23 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-gl-450 450.51.05-0ubuntu1 [54.9 MB]

Scaricamento di:24 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-ifr1-450 450.51.05-0ubuntu1 [7,068 B]

Scaricamento di:25 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-compute-utils-450 450.51.05-0ubuntu1 [109 kB]

Scaricamento di:26 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-kernel-source-450 450.51.05-0ubuntu1 [11.6 MB]

Scaricamento di:27 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-kernel-common-450 450.51.05-0ubuntu1 [9,402 B]

Scaricamento di:28 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-dkms-450 450.51.05-0ubuntu1 [26.7 kB]

Scaricamento di:29 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-extra-450 450.51.05-0ubuntu1 [38.0 kB]

Scaricamento di:30 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-driver-450 450.51.05-0ubuntu1 [411 kB]

Scaricamento di:31 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-utils-450 450.51.05-0ubuntu1 [347 kB]

Scaricamento di:32 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-cfg1-450 450.51.05-0ubuntu1 [74.2 kB]

Scaricamento di:33 file:/var/cuda-repo-ubuntu1804-11-0-local  xserver-xorg-video-nvidia-450 450.51.05-0ubuntu1 [1,235 kB]

Scaricamento di:34 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-modprobe 450.51.05-0ubuntu1 [17.7 kB]

Scaricamento di:35 file:/var/cuda-repo-ubuntu1804-11-0-local  libxnvctrl0 450.51.05-0ubuntu1 [20.5 kB]

Scaricamento di:36 file:/var/cuda-repo-ubuntu1804-11-0-local  nvidia-settings 450.51.05-0ubuntu1 [826 kB]

Scaricamento di:37 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-drivers-450 450.51.05-1 [2,628 B]

Scaricamento di:38 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-drivers 450.51.05-1 [2,504 B]   

Scaricamento di:39 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-runtime-11-0 11.0.2-1 [2,426 B] 

Scaricamento di:40 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-cuobjdump-11-0 11.0.194-1 [91.3 kB]

Scaricamento di:41 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-driver-dev-11-0 11.0.194-1 [26.1 kB]

Scaricamento di:42 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-cudart-dev-11-0 11.0.194-1 [1,609 kB]

Scaricamento di:43 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvcc-11-0 11.0.194-1 [15.7 MB]  

Scaricamento di:44 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvprune-11-0 11.0.167-1 [46.5 kB]

Scaricamento di:45 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-compiler-11-0 11.0.2-1 [2,422 B]

Scaricamento di:46 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvrtc-dev-11-0 11.0.194-1 [22.0 kB]

Scaricamento di:47 file:/var/cuda-repo-ubuntu1804-11-0-local  libcublas-dev-11-0 11.1.0.229-1 [118 MB]

Scaricamento di:48 file:/var/cuda-repo-ubuntu1804-11-0-local  libcufft-dev-11-0 10.2.0.218-1 [176 MB]

Scaricamento di:49 file:/var/cuda-repo-ubuntu1804-11-0-local  libcurand-dev-11-0 10.2.1.218-1 [39.2 MB]

Scaricamento di:50 file:/var/cuda-repo-ubuntu1804-11-0-local  libcusolver-dev-11-0 10.5.0.218-1 [17.6 MB]

Scaricamento di:51 file:/var/cuda-repo-ubuntu1804-11-0-local  libcusparse-dev-11-0 11.1.0.218-1 [72.8 MB]

Scaricamento di:52 file:/var/cuda-repo-ubuntu1804-11-0-local  libnpp-dev-11-0 11.1.0.218-1 [57.3 MB]

Scaricamento di:53 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvjpeg-dev-11-0 11.1.0.218-1 [1,243 kB]

Scaricamento di:54 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-libraries-dev-11-0 11.0.2-1 [2,514 B]

Scaricamento di:55 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-cupti-11-0 11.0.194-1 [3,551 kB]

Scaricamento di:56 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-cupti-dev-11-0 11.0.194-1 [124 kB]

Scaricamento di:57 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvdisasm-11-0 11.0.194-1 [27.2 MB]

Scaricamento di:58 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-gdb-11-0 11.0.194-1 [2,925 kB]  

Scaricamento di:59 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvprof-11-0 11.0.194-1 [18.0 kB]

Scaricamento di:60 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvtx-11-0 11.0.167-1 [51.8 kB]  

Scaricamento di:61 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-sanitizer-11-0 11.0.194-1 [5,553 kB]

Scaricamento di:62 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-command-line-tools-11-0 11.0.2-1 [2,472 B]

Scaricamento di:63 file:/var/cuda-repo-ubuntu1804-11-0-local  nsight-compute-2020.1.1 2020.1.1.8-1 [75.0 MB]

Scaricamento di:64 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nsight-compute-11-0 11.0.2-1 [3,574 B]

Scaricamento di:65 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nsight-systems-11-0 11.0.2-1 [3,284 B]

Scaricamento di:66 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-nvml-dev-11-0 11.0.167-1 [71.9 kB]

Scaricamento di:67 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-visual-tools-11-0 11.0.2-1 [2,934 B]

Scaricamento di:68 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-tools-11-0 11.0.2-1 [2,382 B]   

Scaricamento di:69 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-samples-11-0 11.0.194-1 [42.3 MB]

Scaricamento di:70 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-documentation-11-0 11.0.207-1 [59.6 MB]

Scaricamento di:71 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-toolkit-11-0 11.0.2-1 [2,726 B] 

Scaricamento di:72 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda-11-0 11.0.2-1 [2,440 B]         

Scaricamento di:73 file:/var/cuda-repo-ubuntu1804-11-0-local  cuda 11.0.2-1 [2,392 B]              

Recuperati 79.3 MB in 42s (1,895 kB/s)                                                             

This seems to be the real error :

E: Impossibile recuperare http://ports.ubuntu.com/ubuntu-ports/pool/main/l/linux-meta/linux-headers-generic_4.15.0.208.191_arm64.deb  404  Not Found [IP: 185.125.190.36 80]

E: Impossibile scaricare alcuni pacchetti. Potrebbe essere utile eseguire "apt-get update" o provare l'opzione "--fix-missing".

To get docker working, what did you modify to get the daemon to start? I’m leaving x11 off right now as I don’t use it.

append systemd.unified_cgroup_hierarchy=0 to your kernel like this :

APPEND ${cbootargs} root=/dev/sda1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 systemd.unified_cgroup_hierarchy=0

this is needed because Ubuntu 22.04 uses cgroup v2 by default, which requires kernel 5.8 or greater. But I’m using kernel 4.9 right now. Try to use kernel 5.x on the jetson nano may go beyond my abilities.