我尝试按照此说明进行操作关联在 Ubuntu 14.04 上安装 CUDA,但在此步骤中我遇到了包依赖问题:
~/Downloads$ sudo apt-get install cudaReading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
cuda : Depends: cuda-7-0 (= 7.0-28) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
有人知道可能是什么问题吗?
答案1
选项 1:apt-get
安装未满足的依赖项
sudo apt-get install cuda-runtime-7-0 ... <more unmet dependencies> .... sudo apt-get install cuda-7-0
安装主包
sudo apt-get install cuda
选项 2:能力
安装 aptitude
sudo apt-get install aptitude
安装主包
sudo aptitude install cuda
答案2
就我而言,由于 libnvidia 依赖性,上述所有解决方案均无效。以下是我的解决方案:
sudo apt-get purge nvidia*
sudo apt-get purge libnvidia*
sudo apt-get purge cuda*
sudo apt-get autoremove
sudo apt-get autoclean
答案3
看来您之前安装了某些 nvidia 驱动程序或有缺陷的 cuda 工具包,例如来自 ubuntu 存储库的一些矛盾的版本,因此您应该首先将其删除。
sudo apt-get purge nvidia-*
sudo apt-get autoremove
然后安装cuda。
sudo apt-get install cuda
答案4
当前 GNOME 与 CUDA 驱动程序的集成似乎存在问题(v 346.46)。我在登录会话初始化时遇到了问题,但通过安装 lxde 并删除 gnome 和 ubuntu-desktop 成功解决了该问题,如下所述:caffe安装问题