How to make coexist the CUDA / OPENCV / CUDNN / TensorRT on ubuntu 21.04 even if they work only on Ubuntu 18.04 using bedrocklinux.
by marietto from LinuxQuestions.org on (#5KCVT)
Hello to everyone.
Some time ago I've bought the jetson nano developer edition with 4 GB. It is a board dedicated to the deep learning and Nvidia condensed a lot of tools inside the L4T for Ubuntu (18.04). It is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan. Probably you know that all the nvidia tools to work correctly need that the ubuntu version is the 18.04. This causes a lot of problems for the people who wants to use the board also for different cases.
So, I have created a custom image for the Jetson nano which is now based on ubuntu 21.04 and includes all the most updated packages and libraries and some useful staff for the people who wants to use the board for the virtualization or as a small web server or like a media center,because thanks to the most updated packages offered by ubuntu 21.04 is now possible with less effort. The image includes all the packages and drivers that are included in the Jetson nano BSP version 32.3.1. additional drivers and tools can be installed via the jetson nano apt repository (for example the L4T multimedia API ). You can see the main features of this custom image below :
Code:NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.3.1 [ JetPack 4.3 ]
Ubuntu 21.04
Kernel Version: 4.9.201+
CUDA NOT_INSTALLED
CUDA Architecture: 5.3
OpenCV version: NOT_INSTALLED
OpenCV Cuda: NO
CUDNN: NOT_INSTALLED
TensorRT: NOT_INSTALLED
Vision Works: NOT_INSTALLED
VPI: NOT_INSTALLED
Vulcan: 1.2.162
This is what happens when I try to install the nvidia-jetpack :
Code:root@mario-desktop:/etc/apt/sources.list.d# apt install nvidia-jetpack
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
Alcuni pacchetti non possono essere installati. Questo puo voler dire
che e stata richiesta una situazione impossibile oppure, se si sta
usando una distribuzione in sviluppo, che alcuni pacchetti richiesti
non sono ancora stati creati o sono stati rimossi da Incoming.
Le seguenti informazioni possono aiutare a risolvere la situazione:
I seguenti pacchetti hanno dipendenze non soddisfatte:
nvidia-jetpack : Dipende: libopencv-python (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv-samples (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv-dev (= 4.1.1-2-gd5a58aa75) ma la versione 4.5.1+dfsg-4ubuntu1 sta per essere installata
Dipende: python3-libnvinfer (= 6.0.1-1+cuda10.0) ma non sta per essere installato
Dipende: python3-libnvinfer-dev (= 6.0.1-1+cuda10.0) ma non sta per essere installato
Dipende: opencv-licenses (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati.As u can see,a lot of nvidia tools can't be installed because they don't support ubuntu 21.04,they need ubuntu 18.04. I would like to know if I can install a parallel ubuntu 18.04 os using the bedrock meta distribution on top of the 21.04. Can the nvidia libraries which can run correctly only on ubuntu 18.04 be integrated with the rest of the system ? Do u have some tutorial,suggestion,idea,advice to help me ?
Some time ago I've bought the jetson nano developer edition with 4 GB. It is a board dedicated to the deep learning and Nvidia condensed a lot of tools inside the L4T for Ubuntu (18.04). It is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan. Probably you know that all the nvidia tools to work correctly need that the ubuntu version is the 18.04. This causes a lot of problems for the people who wants to use the board also for different cases.
So, I have created a custom image for the Jetson nano which is now based on ubuntu 21.04 and includes all the most updated packages and libraries and some useful staff for the people who wants to use the board for the virtualization or as a small web server or like a media center,because thanks to the most updated packages offered by ubuntu 21.04 is now possible with less effort. The image includes all the packages and drivers that are included in the Jetson nano BSP version 32.3.1. additional drivers and tools can be installed via the jetson nano apt repository (for example the L4T multimedia API ). You can see the main features of this custom image below :
Code:NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.3.1 [ JetPack 4.3 ]
Ubuntu 21.04
Kernel Version: 4.9.201+
CUDA NOT_INSTALLED
CUDA Architecture: 5.3
OpenCV version: NOT_INSTALLED
OpenCV Cuda: NO
CUDNN: NOT_INSTALLED
TensorRT: NOT_INSTALLED
Vision Works: NOT_INSTALLED
VPI: NOT_INSTALLED
Vulcan: 1.2.162
This is what happens when I try to install the nvidia-jetpack :
Code:root@mario-desktop:/etc/apt/sources.list.d# apt install nvidia-jetpack
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
Alcuni pacchetti non possono essere installati. Questo puo voler dire
che e stata richiesta una situazione impossibile oppure, se si sta
usando una distribuzione in sviluppo, che alcuni pacchetti richiesti
non sono ancora stati creati o sono stati rimossi da Incoming.
Le seguenti informazioni possono aiutare a risolvere la situazione:
I seguenti pacchetti hanno dipendenze non soddisfatte:
nvidia-jetpack : Dipende: libopencv-python (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv-samples (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
Dipende: libopencv-dev (= 4.1.1-2-gd5a58aa75) ma la versione 4.5.1+dfsg-4ubuntu1 sta per essere installata
Dipende: python3-libnvinfer (= 6.0.1-1+cuda10.0) ma non sta per essere installato
Dipende: python3-libnvinfer-dev (= 6.0.1-1+cuda10.0) ma non sta per essere installato
Dipende: opencv-licenses (= 4.1.1-2-gd5a58aa75) ma non sta per essere installato
E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati.As u can see,a lot of nvidia tools can't be installed because they don't support ubuntu 21.04,they need ubuntu 18.04. I would like to know if I can install a parallel ubuntu 18.04 os using the bedrock meta distribution on top of the 21.04. Can the nvidia libraries which can run correctly only on ubuntu 18.04 be integrated with the rest of the system ? Do u have some tutorial,suggestion,idea,advice to help me ?