Install nvidia-jetpack issue

Install nvidia-jetpack
An error will occur if you use the chroot environment

apt-get update
Get:1 https://repo.download.nvidia.com/jetson/common r32.4 InRelease [2552 B]
Get:2 https://repo.download.nvidia.com/jetson/t194 r32.4 InRelease [2565 B]
Get:3 Index of /ubuntu-ports bionic InRelease [242 kB]
Err:1 https://repo.download.nvidia.com/jetson/common r32.4 InRelease

  • The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 0D296FFB880FB004*
    Err:2 https://repo.download.nvidia.com/jetson/t194 r32.4 InRelease
  • The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 0D296FFB880FB004*

Unable to install

apt-get install -y nvidia-jetpack
et:61 Index of /ubuntu-ports bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:62 Index of /ubuntu-ports bionic-security/multiverse DEP-11 64x64 Icons [2638 B]
Reading package lists… Done
W: GPG error: https://repo.download.nvidia.com/jetson/common r32.4 InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 0D296FFB880FB004
E: The repository’https://repo.download.nvidia.com/jetson/common r32.4 InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://repo.download.nvidia.com/jetson/t194 r32.4 InRelease: The following signatures couldn’t be verified because the p ublic key is not available: NO_PUBKEY 0D296FFB880FB004
E: The repository’https://repo.download.nvidia.com/jetson/t194 r32.4 InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists… Done

I tried to add GITKEY ,still can’t install

#Get and install the nvidia-docker public key
curl -sL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add-

#Set variable
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)

#Add repository
curl -sL https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

#can’t install nvidia-jetpack
apt-get update

But the installation on the board is successful,
So copy the relevant deb to chroot environment
But there will still be errors in the installation

dpkg -i *.deb


Setting up mesa-common-dev:arm64 (20.0.8-0ubuntu1~18.04.1) …
Setting up nvidia-container-csv-cudnn (7.6.3.28-1+cuda10.0) …
Setting up nvidia-container-toolkit (1.0.1-1) …
dpkg: dependency problems prevent configuration of nvidia-l4t-jetson-multimedia-api:
nvidia-l4t-jetson-multimedia-api depends on nvidia-l4t-camera (= 32.3.1-20191209230245); however:
Package nvidia-l4t-camera is not installed.
nvidia-l4t-jetson-multimedia-api depends on nvidia-l4t-core (= 32.3.1-20191209230245); however:
Package nvidia-l4t-core is not installed.
nvidia-l4t-jetson-multimedia-api depends on nvidia-l4t-multimedia (= 32.3.1-20191209230245); however:
Package nvidia-l4t-multimedia is not installed.
nvidia-l4t-jetson-multimedia-api depends on nvidia-l4t-multimedia-utils (= 32.3.1-20191209230245); however:
Package nvidia-l4t-multimedia-utils is not installed.

dpkg: error processing package nvidia-l4t-jetson-multimedia-api (–install):
dependency problems-leaving unconfigured
Setting up po-debconf (1.0.20) …
Setting up uff-converter-tf (6.0.1-1+cuda10.0) …
Setting up vpi (0.1.0) …
update-alternatives: using /opt/nvidia/vpi/vpi-0.1/lib/libnvvpi.so.0.1.0 to provide /usr/lib/aarch64-linux-gnu//tegra/libnvvpi.so.0.1.0 (vpi ) in auto mode
update-alternatives: error: error creating symbolic link’/usr/lib/aarch64-linux-gnu//tegra/libnvvpi.so.0.1.0.dpkg-tmp’: No such file or directory
dpkg: error processing package vpi (–install):
installed vpi package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of vpi-dev:
vpi-dev depends on vpi (= 0.1.0); however:
Package vpi is not configured yet.

dpkg: error processing package vpi-dev (–install):
dependency problems-leaving unconfigured
dpkg: dependency problems prevent configuration of vpi-samples:
vpi-samples depends on vpi-dev (= 0.1.0); however:
Package vpi-dev is not configured yet.

Unable to install

Why do you have to use the apt in a chroot environment?

Will you see the same issue if you don’t use chroot?

Because nvidia-jetpack is not pre-installed
I want to generate a ROOTFS pre-installed nvidia-jetpack, etc.,
So use chroot to install

Install nvidia-jetpack directly on the board to install and execute opencv successfully

So where did you chroot? On the host?

yes!

echo -e “\033[36m Change root…\033[0m”
if [ “$ARCH” == “armhf” ]; then
sudo cp /usr/bin/qemu-arm-static $TARGET_ROOTFS_DIR/usr/bin/
elif [ “$ARCH” == “arm64” ]; then
sudo cp /usr/bin/qemu-aarch64-static $TARGET_ROOTFS_DIR/usr/bin/
fi

sudo rm -rf $TARGET_ROOTFS_DIR/etc/resolv.conf
sudo cp -rfL /etc/resolv.conf $TARGET_ROOTFS_DIR/etc/resolv.conf

sudo mount -o bind /dev $TARGET_ROOTFS_DIR/dev

cat <<EOF | sudo chroot $TARGET_ROOTFS_DIR

#------------------------------------------

apt-get update

apt-get install -y vlc
apt-get install -y cifs-utils
apt-get install -y nvidia-jetpack

#---------------Clean--------------
rm -rf /var/lib/apt/lists/*

EOF

sudo umount $TARGET_ROOTFS_DIR/dev

We don’t guarantee that would work on host. Please follow the original setup and do the apt install on the device side.

Is there any other way to pre-install nvidia-jetpack?

Because rootfs is often modified, I hope to pre-install commonly used software to avoid wasting time to install

Your log says there are lots of dependency that is not installed yet. Why not you firstly install them and see if it can work?

That is, I copied the deb file of nvidia-jetpack on the board and installed it on the PC, and used the chroot environment to install nvidia-jetpack
It seems impossible to install directly with dpkg -i *.deb

dpkg -i *.deb


Setting up mesa-common-dev:arm64 (20.0.8-0ubuntu1~18.04.1) …
Setting up nvidia-container-csv-cudnn (7.6.3.28-1+cuda10.0) …
Setting up nvidia-container-toolkit (1.0.1-1) …
dpkg: dependency problems prevent configuration of nvidia-l4t-jetson-multimedia-api:

Follow the installation sequence that apt-get install -y nvidia-jetpack appears
dpkg -i cuda-license-10-0_10.0.326-1_arm64.deb
dpkg -i cuda-misc-headers-10-0_10.0.326-1_arm64.deb
dpkg -i cuda-nvcc-10-0_10.0.326-1_arm64.deb
dpkg -i cuda-cuobjdump-10-0_10.0.326-1_arm64.deb

It seems that the installation can be successful after adding the dependency deb file
But several deb files will have the following errors

Unpacking nvidia-jetpack (4.3-b134) …
dpkg: dependency problems prevent configuration of nvidia-jetpack:
nvidia-jetpack depends on libvisionworks-sfm-dev (= 0.90.4); however:
Package libvisionworks-sfm-dev is not configured yet.
nvidia-jetpack depends on libvisionworks-samples (= 1.6.0.500n); however:
Package libvisionworks-samples is not configured yet.
nvidia-jetpack depends on libvisionworks-tracking-dev (= 0.88.2); however:
Package libvisionworks-tracking-dev is not configured yet.
nvidia-jetpack depends on vpi-samples (= 0.1.0); however:
Package vpi-samples is not configured yet.
nvidia-jetpack depends on nvidia-l4t-jetson-multimedia-api (= 32.3.1-20191209230245); however:
Package nvidia-l4t-jetson-multimedia-api is not configured yet.
nvidia-jetpack depends on vpi-dev (= 0.1.0); however:
Package vpi-dev is not configured yet.
nvidia-jetpack depends on vpi (= 0.1.0); however:
Package vpi is not configured yet.