尝试安装 cuda 9 时出现以下错误。我使用的是 Ubuntu 18.04.1 LTS
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-410 (>= 410.48) but it is not going to be installed
libcuda1-410 : Depends: nvidia-410 (>= 410.48) but it is not going to be installed
nvidia-410-dev : Depends: nvidia-410 (>= 410.48) but it is not going to be installed
nvidia-opencl-icd-410 : Depends: nvidia-410 (>= 410.48) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
然后我尝试运行“apt --fix-broken install”,它提示我安装数据包,我输入是,但这不起作用,并且我收到以下错误。
Preparing to unpack .../nvidia-410_410.48-0ubuntu1_amd64.deb ...
Unpacking nvidia-410 (410.48-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-410_410.48-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/sbin/create-uvm-dev-node', which is also in package nvidia-kernel-common-390 390.87-0ubuntu0~gpu18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-410_410.48-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不确定我该怎么做。任何帮助都将不胜感激。使用 gtx 1050ti 并验证它是使用 nvidia-smi 安装的。
我已采取的步骤:
--fix-broken(没有按上面描述的方式工作)
--fix-policy(安装更多软件包,但出现与上述 nvidia 驱动器相同的错误)
重新启动(现在由于某种原因我的 nvidia 驱动程序已被卸载并且无法重新安装)
如果有办法删除所有软件包,我很想知道,我已经尝试了所有方法,但都不起作用
我能够使用 sudo apt-get purge nvidia* 然后按照说明重新安装正确的 nvidia 驱动程序。我仍然不确定我应该怎么做才能安装 cuda,我应该再次按照说明操作并希望它不会再次发生吗?