# Package system is broken

**URL:** <https://forums.developer.nvidia.com/t/package-system-is-broken/219583>\
**Category:** Jetson Xavier NX\
**Tags:** cuda\
**Created:** [July 3, 2022, 5:10am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583 "2022-07-03T05:10:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![floater](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@floater](https://forums.developer.nvidia.com/u/floater)\
**Post date:** [July 3, 2022, 5:10am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/1 "2022-07-03T05:10:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [July 4, 2022, 2:35am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/3 "2022-07-04T02:35:47Z")

</div>

Hi,

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

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

```

Thanks.

---

<div class="post-metadata">

**Author:** ![floater](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@floater](https://forums.developer.nvidia.com/u/floater)\
**Post date:** [July 4, 2022, 5:46am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/4 "2022-07-04T05:46:33Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [July 5, 2022, 4:30am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/5 "2022-07-05T04:30:16Z")

</div>

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?

> [@Apt install cuda-profiler-api-11-4 failed](https://forums.developer.nvidia.com/t/apt-install-cuda-profiler-api-11-4-failed/218634/13):
>
> This is probably going to be resolved by someone who is in control of the .deb packages. However, I have found a solution. There was a similar issue on stack overflow for fixing an old cuda instillation on x86 I found a while back but lost the link :( Try this: sudo apt --fix-broken install -o Dpkg::Options::="--force-overwrite"

Thanks.

---

<div class="post-metadata">

**Author:** ![floater](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@floater](https://forums.developer.nvidia.com/u/floater)\
**Post date:** [July 5, 2022, 11:28pm UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/6 "2022-07-05T23:28:10Z")

</div>

Thanks. That command seems to work.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 27, 2022, 3:07am UTC](https://forums.developer.nvidia.com/t/package-system-is-broken/219583/8 "2022-07-27T03:07:59Z")

</div>

Closed on July 27, 2022, 3:07am UTC

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