The package system is broken!

Hello,

When running Software updater, i get this issue :

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-command-line-tools-11-4: Depends: cuda-cupti-dev-11-4 (>= 11.4.167) but 11.4.239-1 is installed
Depends: cuda-gdb-11-4 (>= 11.4.167) but 11.4.247-1 is installed
Depends: cuda-nvdisasm-11-4 (>= 11.4.167) but 11.4.239-1 is installed
Depends: cuda-nvprof-11-4 (>= 11.4.166) but it is not installed
Depends: cuda-nvtx-11-4 (>= 11.4.166) but 11.4.239-1 is installed
Depends: cuda-sanitizer-11-4 (>= 11.4.166) but 11.4.239-1 is installed

This came without particular operation from myself. I just made a software update like always.

I tried this :
apt-get install -f

The command give this result :
The following additional packages will be installed:
cuda-nvprof-11-4
The following NEW packages will be installed:
cuda-nvprof-11-4
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
1 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] Y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 179216 files and directories currently installed.)
Preparing to unpack …/cuda-nvprof-11-4_11.4.166-1_arm64.deb …
Unpacking cuda-nvprof-11-4 (11.4.166-1) …
dpkg: error processing archive /var/cache/apt/archives/cuda-nvprof-11-4_11.4.166-1_arm64.deb (–unpack):
trying to overwrite ‘/usr/local/cuda-11.4/targets/aarch64-linux/include/cudaProfiler.h’, which is also in package cuda-profiler-api-11-4 11.4.239-1
Errors were encountered while processing:
/var/cache/apt/archives/cuda-nvprof-11-4_11.4.166-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It’s the first time i get such problem.

Any help will be appreciate !

Alain

I had the same issue, try this sequence of commands to get it resolved

sudo apt --fix-broken install -o Dpkg::Options::="--force-overwrite"
sudo apt-get dist-upgrade
sudo apt autoremove
1 Like

Hello richg,

you saved me ! It works !

Many thanks.

Alain

1 Like

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