file does not exist.
I deleted /usr/local/cuda-11.4/ to get rid of everything, and redownload, no help
bottom line, if I can’t run apt upgrade, I cannot install the packages I need.
IMHO this is the same problem described by bbullas, but I am trying to point out the root problem, which is the fact that the file write failure of :
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 159428 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 (–unpa
ck):
trying to overwrite ‘/usr/local/cuda-11.4/targets/aarch64-linux/include/cudaProfiler.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)
Yep, this one fixed it for me too: sudo apt --fix-broken install -o Dpkg::Options::="--force-overwrite".
I was getting the following error for a $ sudo apt --fix-broken install:
...
The following NEW packages will be installed:
cuda-profiler-api-11-4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 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 ... 161620 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 (--un
pack):
trying to overwrite '/usr/local/cuda-11.4/targets/aarch64-linux/include/cudaProfiler.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)