Libnvidia-compute-450:arm64 error

Hi, i am new here. I am trying to do upgrade to my Jetson Xavier NX and i am getting this error about “libnvidia-compute-450:arm64”. i tried to use “sudo apt --fix-broken install” but i am getting this error back “E: Sub-process /usr/bin/dpkg returned an error code (1)” after few seconds.

emmanuel@emmanuel-desktop:~$ sudo apt-get upgrade
[sudo] password for emmanuel: 
Sorry, try again.
[sudo] password for emmanuel: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cuda-drivers-450 : Depends: libnvidia-compute-450 (>= 450.51.05) but it is not installed
                    Depends: libnvidia-gl-450 (>= 450.51.05) but it is not installed
 libnvidia-decode-450 : Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not installed
 libnvidia-ifr1-450 : Depends: libnvidia-gl-450 but it is not installed
 nvidia-compute-utils-450 : Depends: libnvidia-compute-450 but it is not installed
 nvidia-driver-450 : Depends: libnvidia-gl-450 (= 450.51.05-0ubuntu1) but it is not installed
                     Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not installed
 nvidia-utils-450 : Depends: libnvidia-compute-450 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
emmanuel@emmanuel-desktop:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  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-samples-11-0
  cuda-sanitizer-11-0 cuda-toolkit-11-0 cuda-tools-11-0 cuda-visual-tools-11-0
  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-extra-450 libnvjpeg-11-0 libnvjpeg-dev-11-0
  nsight-compute-2020.1.1 nsight-systems-cli-2020.3.2 nvidia-compute-utils-450
  nvidia-driver-450 nvidia-modprobe nvidia-prime nvidia-settings
  nvidia-utils-450 screen-resolution-extra xserver-xorg-video-nvidia-450
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libnvidia-compute-450 libnvidia-gl-450
The following NEW packages will be installed:
  libnvidia-compute-450 libnvidia-gl-450
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
9 not fully installed or removed.
Need to get 0 B/64.1 MB of archives.
After this operation, 257 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-compute-450 450.51.05-0ubuntu1 [9,231 kB]
Get:2 file:/var/cuda-repo-ubuntu1804-11-0-local  libnvidia-gl-450 450.51.05-0ubuntu1 [54.9 MB]
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libnvidia-compute-450:arm64.
(Reading database ... 187953 files and directories currently installed.)
Preparing to unpack .../libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb ...
Unpacking libnvidia-compute-450:arm64 (450.51.05-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb (--unpack):
 trying to overwrite '/usr/lib/aarch64-linux-gnu/libcuda.so', which is also in package nvidia-l4t-cuda 32.4.3-20200625213407
Preparing to unpack .../libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb ...
Unpacking libnvidia-gl-450:arm64 (450.51.05-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb (--unpack):
 trying to overwrite '/usr/share/glvnd/egl_vendor.d/10_nvidia.json', which is also in package nvidia-l4t-3d-core 32.4.3-20200625213407
Errors were encountered while processing:
 /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb
 /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The package name looks like it is from the downloads for a PC, not arm64. GPU drivers and such from the regular downloads have no chance at all of functioning, and may cause problems. The initial install of those packages should be via SDK Manager, which understands the arm64 environment (versus amd64/x86_64). Where did you get the original packages from?

If those are from the SDK Manager, something else is going on.

I was getting the same issue but it was resolved by:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken
5 Likes