Jetson AGX cuda-drivers-470/nvidia-compute-utils-470/nvidia-driver-470 Problem

Hey Everyone,

I currently have a Jetson AGX Xavier. I am trying build a library from source and I got the errors.

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cuda-drivers-470 : Depends: libnvidia-compute-470 (>= 470.42.01) but it is not going to be installed
                    Depends: libnvidia-gl-470 (>= 470.42.01) but it is not going to be installed
 libnvidia-decode-470 : Depends: libnvidia-compute-470 (= 470.42.01-0ubuntu1) but it is not going to be installed
 libnvidia-ifr1-470 : Depends: libnvidia-gl-470 but it is not going to be installed
 nvidia-compute-utils-470 : Depends: libnvidia-compute-470 but it is not going to be installed
 nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.42.01-0ubuntu1) but it is not going to be installed
                     Depends: libnvidia-compute-470 (= 470.42.01-0ubuntu1) but it is not going to be installed
 nvidia-utils-470 : Depends: libnvidia-compute-470 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried running ‘apt --fix-broken install’ but still got the same errors.
When I run "sudo dpkg --configure -a " I get the following errors:

dpkg: dependency problems prevent configuration of cuda-drivers-470:
 cuda-drivers-470 depends on libnvidia-compute-470 (>= 470.42.01); however:
  Package libnvidia-compute-470:arm64 is not installed.
 cuda-drivers-470 depends on libnvidia-gl-470 (>= 470.42.01); however:
  Package libnvidia-gl-470:arm64 is not installed.

dpkg: error processing package cuda-drivers-470 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-compute-utils-470:
 nvidia-compute-utils-470 depends on libnvidia-compute-470; however:
  Package libnvidia-compute-470:arm64 is not installed.

dpkg: error processing package nvidia-compute-utils-470 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-470:
 nvidia-driver-470 depends on libnvidia-gl-470 (= 470.42.01-0ubuntu1); however:
  Package libnvidia-gl-470:arm64 is not installed.
 nvidia-driver-470 depends on libnvidia-compute-470 (= 470.42.01-0ubuntu1); however:
  Package libnvidia-compute-470:arm64 is not installed.

dpkg: error processing package nvidia-driver-470 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-drivers:
 cuda-drivers depends on cuda-drivers-470 (= 470.42.01-1); however:
  Package cuda-drivers-470 is not configured yet.

dpkg: error processing package cuda-drivers (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-470:arm64:
 libnvidia-ifr1-470:arm64 depends on libnvidia-gl-470; however:
  Package libnvidia-gl-470:arm64 is not installed.

dpkg: error processing package libnvidia-ifr1-470:arm64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-utils-470:
 nvidia-utils-470 depends on libnvidia-compute-470; however:
  Package libnvidia-compute-470:arm64 is not installed.

dpkg: error processing package nvidia-utils-470 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-decode-470:arm64:
 libnvidia-decode-470:arm64 depends on libnvidia-compute-470 (= 470.42.01-0ubuntu1); however:
  Package libnvidia-compute-470:arm64 is not installed.

dpkg: error processing package libnvidia-decode-470:arm64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-runtime-11-4:
 cuda-runtime-11-4 depends on cuda-drivers (>= 470.42.01); however:
  Package cuda-drivers is not configured yet.

dpkg: error processing package cuda-runtime-11-4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-encode-470:arm64:
 libnvidia-encode-470:arm64 depends on libnvidia-decode-470; however:
  Package libnvidia-decode-470:arm64 is not configured yet.

dpkg: error processing package libnvidia-encode-470:arm64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-11-4:
 cuda-11-4 depends on cuda-runtime-11-4 (>= 11.4.0); however:
  Package cuda-runtime-11-4 is not configured yet.

dpkg: error processing package cuda-11-4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda:
 cuda depends on cuda-11-4 (>= 11.4.0); however:
  Package cuda-11-4 is not configured yet.

dpkg: error processing package cuda (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
 cuda-drivers-470
 nvidia-compute-utils-470
 nvidia-driver-470
 cuda-drivers
 libnvidia-ifr1-470:arm64
 nvidia-utils-470
 libnvidia-decode-470:arm64
 cuda-runtime-11-4
 libnvidia-encode-470:arm64
 cuda-11-4
 cuda

Could you please help me in solving this problem?

Here’s some info about my Jetosn:
NVIDIA Jetson AGX Xavier [16GB]
L4T 32.3.1 [ JetPack 4.3 ]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.140-tegra
CUDA NOT_INSTALLED
CUDA Architecture: 7.2
OpenCV version: 4.1.1
OpenCV Cuda: NO
CUDNN: NOT_INSTALLED
TensorRT: NOT_INSTALLED
Vision Works: NOT_INSTALLED
VPI: NOT_INSTALLED
Vulcan: 1.1.70

The “-470” sounds like you downloaded a separate package which was not provided with JetPack/SDK Manager. If so, then none of the “-470” packages are valid for this architecture. Some arm64/aarch64 packages are available, but the hardware is more for data warehouse type hardware, and doesn’t apply to Jetsons. If this is the case, then download and install those packages (without the “-470” in the name) through JetPack/SDK Manager.