在 Ubuntu 14.04 上安装 CUDA 时出现包依赖问题

Ohm*_*Ohm 18 nvidia cuda

我尝试按照此链接上的说明在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.
Run Code Online (Sandbox Code Playgroud)

有人知道可能是什么问题吗?

A.B*_*.B. 27

选项 1:apt-get

  1. 安装未满足的依赖项

    sudo apt-get install cuda-runtime-7-0
    ...
    <more unmet dependencies>
    ....
    sudo apt-get install cuda-7-0
    
    Run Code Online (Sandbox Code Playgroud)
  2. 安装主包

    sudo apt-get install cuda
    
    Run Code Online (Sandbox Code Playgroud)

选项2:能力

  1. 安装能力

    sudo apt-get install aptitude
    
    Run Code Online (Sandbox Code Playgroud)
  2. 安装主包

    sudo aptitude install cuda
    
    Run Code Online (Sandbox Code Playgroud)

  • 然后从`sudo apt-get install cuda-runtime-7-0` 等开始。作为替代方案,我会尝试使用 aptitude 安装 CUDA:`sudo apt-get-install aptitude` 然后是 `sudo aptitude install cuda`。 (2认同)