当前位置:   article > 正文

Errors were encountered while processing: /var/cuda-repo-ubuntu2004-12-0-local

Errors were encountered while processing: /var/cuda-repo-ubuntu2004-12-0-local

问题描述

在这里插入图片描述

mac@10-SYS-7048GR-TR:~$ sudo apt-get -y install cuda
Reading package lists... Done
Building dependency tree       
Reading state information... Done
cuda is already the newest version (12.0.0-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cuda-cudart-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 cuda-opencl-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcublas-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcufft-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcufile-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcurand-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcusolver-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libcusparse-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libnpp-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libnvjitlink-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
 libnvjpeg-12-0 : Depends: cuda-toolkit-config-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
Unpacking cuda-toolkit-config-common (12.0.107-1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu2004-12-0-local/./cuda-toolkit-config-common_12.0.107-1_all.deb (--unpack):
 trying to overwrite '/etc/ld.so.conf.d/000_cuda.conf', which is also in package cuda-cudart-11-2 11.2.152-1
Errors were encountered while processing:
 /var/cuda-repo-ubuntu2004-12-0-local/./cuda-toolkit-config-common_12.0.107-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

解决方案
不论提示你“Errors were encountered while processing:
xxx”,就把这个文件强制overwrite即可。

sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu2004-12-0-local/./cuda-toolkit-config-common_12.0.107-1_all.deb
  • 1

然后再执行你之前的命令即可。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/440408
推荐阅读
相关标签
  

闽ICP备14008679号