Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Can't install CUDA

  1. #11
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,611
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Can't install CUDA

    Quote Originally Posted by py-ohayo View Post
    Correct ?
    No, you want to keep the entries for the graphics drivers PPA. It's the entries that point to those local CUDA repositories that you'd want to remove. And if you already don't have those entries, that would be why your package manager has no knowledge of a package called cuda.

    Don't just blindly follow random instructions that you found somewhere on the Internet. It will only ever end in tears.

    You've got the driver installed and working. The Nvidia site has a wizard thing where you say which distro you're using and so on. You just go through that and at the end select the .deb file that doesn't dump the whole CUDA repository on your hard drive. That will just be a tiny file that packages up the sources.list entries. Run the update then install the metapackage that doesn't mess up your drivers.

  2. #12
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    And if you already don't have those entries, that would be why your package manager has no knowledge of a package called cuda.
    Is it possible to add it manually in some way ... otherwise for the moment I don't see any possibility to advance since you don't recommend using run file.

    You've got the driver installed and working. The Nvidia site has a wizard thing where you say which distro you're using and so on.

    Here is this wizard:


    There are 4 options, among them two (deb) one of which I've already tried.
    Should I try deb network ?
    Last edited by py-ohayo; April 1st, 2020 at 01:50 PM.

  3. #13
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,611
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Can't install CUDA

    Quote Originally Posted by py-ohayo View Post
    Should I try deb network ?
    Quote Originally Posted by CatKiller View Post
    There's a much more standard way of simply adding a new repository entry to your sources.list - although Nvidia insist on distributing that through a .deb file, too, because Nvidia. Then it's just part of your standard package management. I forget what they call the option - it's something like "network install," which would mean something else to everyone that isn't Nvidia - and I'm not about to browse their abomination of a site on my phone to check.
    Yes.

  4. #14
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    Tried 3rd option (i.e. deb network).
    Here is outcome:
    Code:
    pavel@ALABAMA:~/installers$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
    [sudo] password for pavel: 
    Executing: /tmp/apt-key-gpghome.AwgcOp9oRL/gpg.1.sh --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
    gpg: requesting key from 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub'
    gpg: key F60F4B3D7FA2AF80: "cudatools <cudatools@nvidia.com>" not changed
    gpg: Total number processed: 1
    gpg:              unchanged: 1
    pavel@ALABAMA:~/installers$ sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
    Hit:1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
    Hit:2 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease                           
    Hit:3 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease                                    
    Hit:4 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease                          
    Ign:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
    Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
    Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release [564 B]
    Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release.gpg [819 B]
    Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Packages [141 kB]
    Fetched 231 kB in 1s (263 kB/s)                               
    Reading package lists... Done
    pavel@ALABAMA:~/installers$ sudo apt-get update
    Hit:1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
    Hit:2 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                    
    Hit:3 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                  
    Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease                                                     
    Ign:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease    
    Hit:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release
    Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
    Fetched 88,7 kB in 1s (79,4 kB/s)                               
    Reading package lists... Done
    pavel@ALABAMA:~/installers$ sudo apt-get -y install cuda
    Reading 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-10-2 (>= 10.2.89) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  5. #15
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    14,223
    Distro
    Ubuntu Budgie Development Release

    Re: Can't install CUDA

    A tutorial suggested installing the following dependencies. I don't know if it applies to the instructions you are using.

    Code:
    sudo apt-get install freeglut3 freeglut3-dev libxi-dev libxmu-dev
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  6. #16
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    All prerequisites were already installed.
    Something went through my mind ... the version of CUDA 10.2 that I'm trying to install is actually CUDA Toolkit 10.1 update2.
    And there is no any notion that one should install original release ... and then probably update1.... before proceeding with update2.
    As it wasn't specified at all (!!!) I considered CUDA Toolkit 10.1 update2 as independent version.
    He was probably wrong.
    So, I will now try to install the original 10.1 first.

  7. #17
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    Tried original. The same !!!

  8. #18
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    Well ... seems the problem comes from the fact that I installed driver from Software & Update.
    This way it installs along wit driver some kind of CUDA..
    I don't know exactly what this kind of CUDA is, but a guy from NVIDIA I talked to in a chat called it "default CUDA".
    Probably some kind of runtime module ... I don't know.
    And the version of kind of CUDA being installed along with drivers is the last one, i.e. 10.2.
    As you see when I execute nvidia-smi, CUDA 10,2 is displayed.

    Code:
    pavel@ALABAMA:~/installers$ nvidia-smi
    Wed Apr  1 17:27:57 2020       
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  GeForce GTX 1050    Off  | 00000000:01:00.0 Off |                  N/A |
    | N/A   43C    P0    N/A /  N/A |    381MiB /  2002MiB |      2%      Default |
    +-------------------------------+----------------------+----------------------+
                                                                                   
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID   Type   Process name                             Usage      |
    |=============================================================================|
    |    0      1078      G   /usr/lib/xorg/Xorg                           253MiB |
    |    0      1343      G   /usr/bin/gnome-shell                         125MiB |
    |    0      9298      G   /usr/lib/firefox/firefox                       1MiB |
    +-----------------------------------------------------------------------------+
    As I need CUDA 10.1, this method doesn't match my needs, so I purged NVIDIA staff and install drivers with apt-get.
    But before continuing, I need to solve a problem that I will describe in a separate post.

  9. #19
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,611
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Can't install CUDA

    Quote Originally Posted by py-ohayo View Post
    Code:
    pavel@ALABAMA:~/installers$ sudo apt-get -y install cuda
    Do you even read the things that people write to help you?

  10. #20
    Join Date
    Jun 2015
    Beans
    68

    Re: Can't install CUDA

    Quote Originally Posted by CatKiller View Post
    Do you even read the things that people write to help you?
    Yes, always.
    Don't understand what you mean ... sorry.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •