Package system is broken

I tried to install JetPack 5.0.1 DP on Xavier NX, along with Deepstream, but got this when updating:

The package system is broken
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
The following packages have unmet dependencies:

cuda-libraries-dev-11-4: Depends: cuda-cudart-dev-11-4 (>= 11.4.243) but 11.4.243-1 is installed
Depends: cuda-cccl-11-4 (>= 11.4.222) but 11.4.222-1 is installed
Depends: cuda-profiler-api-11-4 (>= 11.4.239) but it is not installed
Depends: cuda-driver-dev-11-4 (>= 11.4.243) but 11.4.243-1 is installed
Depends: cuda-nvrtc-dev-11-4 (>= 11.4.239) but 11.4.239-1 is installed
Depends: libcublas-dev-11-4 (>= 11.6.6.23) but 11.6.6.23-1 is installed
Depends: libcudla-dev-11-4 (>= 11.4.239) but 11.4.239-1 is installed
Depends: libcusparse-dev-11-4 (>= 11.6.0.238) but 11.6.0.238-1 is installed

Help. What do I do?

Hi,

Could you try to install cuBLAS manually to see if it helps?
For example:

$ sudo apt install libcublas-11-4
$ sudo apt install cuda-toolkit-11-4
$ sudo apt install deepstream-6.1

Thanks.

No good. I get:

$ sudo apt install libcublas-11-4
Reading package lists… Done
Building dependency tree
Reading state information… Done
libcublas-11-4 is already the newest version (11.6.6.23-1).
libcublas-11-4 set to manually installed.
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
cuda-libraries-dev-11-4 : Depends: cuda-profiler-api-11-4 (>= 11.4.239) but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

I get similar messages for the other commands. If I try to fix the broken install, I get:

$ 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:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
cuda-nvprof-11-4 dctrl-tools dpkg-repack gir1.2-timezonemap-1.0
gir1.2-xkl-1.0 grub-common libdebian-installer4 libfwupdplugin1
libtimezonemap-data libtimezonemap1 os-prober python3-icu python3-pam rdate
tasksel tasksel-data
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
cuda-profiler-api-11-4
The following NEW packages will be installed:
cuda-profiler-api-11-4
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
8 not fully installed or removed.
Need to get 0 B/18.6 kB of archives.
After this operation, 90.1 kB of additional disk space will be used.
Do you want to continue? [Y/n]
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 154882 files and directories currently installed.)
Preparing to unpack …/cuda-profiler-api-11-4_11.4.239-1_arm64.deb …
Unpacking cuda-profiler-api-11-4 (11.4.239-1) …
dpkg: error processing archive /var/cache/apt/archives/cuda-profiler-api-11-4_11
.4.239-1_arm64.deb (–unpack):
trying to overwrite ‘/usr/local/cuda-11.4/targets/aarch64-linux/include/cudaPro
filer.h’, which is also in package cuda-nvprof-11-4 11.4.166-1
Errors were encountered while processing:
/var/cache/apt/archives/cuda-profiler-api-11-4_11.4.239-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi,

There is an issue in our apt server but is fixed already.
Could you try the command shared below to see if it works on your side?

Thanks.

Thanks. That command seems to work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.