Cannot install Nvidia drivers v396 on Ubuntu 18.04












0















I am trying to install version 396 of the Nvidia drivers on Ubuntu 18.04 using this link. I got a message about unmet dependencies (see below). Actually when using ubuntu-drivers devices the recommended version is 415. I tried that but got same results. The excellent post mentioned in the link does not mention this problem. Does somebody know the cause of this problem (why doesn't apt install these dependencies) and how I can solve this?



I have a dual 1080Ti setup with driver version 390. For Cuda 9.2 I need at least version 396.



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:
nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.









share|improve this question

























  • Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

    – ubfan1
    Jan 10 at 17:03











  • Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

    – Arnold
    Jan 10 at 19:51


















0















I am trying to install version 396 of the Nvidia drivers on Ubuntu 18.04 using this link. I got a message about unmet dependencies (see below). Actually when using ubuntu-drivers devices the recommended version is 415. I tried that but got same results. The excellent post mentioned in the link does not mention this problem. Does somebody know the cause of this problem (why doesn't apt install these dependencies) and how I can solve this?



I have a dual 1080Ti setup with driver version 390. For Cuda 9.2 I need at least version 396.



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:
nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.









share|improve this question

























  • Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

    – ubfan1
    Jan 10 at 17:03











  • Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

    – Arnold
    Jan 10 at 19:51
















0












0








0








I am trying to install version 396 of the Nvidia drivers on Ubuntu 18.04 using this link. I got a message about unmet dependencies (see below). Actually when using ubuntu-drivers devices the recommended version is 415. I tried that but got same results. The excellent post mentioned in the link does not mention this problem. Does somebody know the cause of this problem (why doesn't apt install these dependencies) and how I can solve this?



I have a dual 1080Ti setup with driver version 390. For Cuda 9.2 I need at least version 396.



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:
nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.









share|improve this question
















I am trying to install version 396 of the Nvidia drivers on Ubuntu 18.04 using this link. I got a message about unmet dependencies (see below). Actually when using ubuntu-drivers devices the recommended version is 415. I tried that but got same results. The excellent post mentioned in the link does not mention this problem. Does somebody know the cause of this problem (why doesn't apt install these dependencies) and how I can solve this?



I have a dual 1080Ti setup with driver version 390. For Cuda 9.2 I need at least version 396.



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:
nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.






drivers nvidia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 12 at 7:00







Arnold

















asked Jan 10 at 16:22









ArnoldArnold

1086




1086













  • Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

    – ubfan1
    Jan 10 at 17:03











  • Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

    – Arnold
    Jan 10 at 19:51





















  • Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

    – ubfan1
    Jan 10 at 17:03











  • Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

    – Arnold
    Jan 10 at 19:51



















Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

– ubfan1
Jan 10 at 17:03





Even before adding the ppa, did you check what driver(s) were offered under the "Sofftware and Updates"/Additional Drivers tab? You could add the depends yourself with the apt-get install ...

– ubfan1
Jan 10 at 17:03













Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

– Arnold
Jan 10 at 19:51







Yes, I did. It got no further than version 390. This in itself is strange as I saw examples that showed version 396. I can add the dependencies, but I wonder if there is a reasion that apt does not add them itself?

– Arnold
Jan 10 at 19:51












1 Answer
1






active

oldest

votes


















0














I tried to install the unmet dependencies as suggested in the comment. I start with libnvidia-gl-396. That resulted in the same error message about unmet dependencies and a broken package. I tried to fix that with



sudo apt-get install --fix-broken


but that didn't work. I rebooted and ran software and updates again. To my surprise it listed all available versions from 390 onwards: 390, 396, 410 and 415, where it first listed just 390. Tried to install any of them but that didn't succeed. Got no message as to why.



As I'd figured out before the following versions were available:



$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-415 - third-party free recommended
driver : nvidia-driver-396 - third-party free
driver : nvidia-driver-390 - third-party free
driver : nvidia-driver-410 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin


Version 396 would be ok for now, but Cuda 10 already needs driver version 410, so I could live with the recommendation. This article suggested to remove the old drivers and install the new ones as follows:



sudo apt-get remove --purge nvidia-*
sudo ubuntu-drivers autoinstall


And it worked. I can now run Tensorflow 1.12 without it complaining about the wrong driver version.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108632%2fcannot-install-nvidia-drivers-v396-on-ubuntu-18-04%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I tried to install the unmet dependencies as suggested in the comment. I start with libnvidia-gl-396. That resulted in the same error message about unmet dependencies and a broken package. I tried to fix that with



    sudo apt-get install --fix-broken


    but that didn't work. I rebooted and ran software and updates again. To my surprise it listed all available versions from 390 onwards: 390, 396, 410 and 415, where it first listed just 390. Tried to install any of them but that didn't succeed. Got no message as to why.



    As I'd figured out before the following versions were available:



    $ ubuntu-drivers devices
    == /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
    modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
    vendor : NVIDIA Corporation
    model : GP102 [GeForce GTX 1080 Ti]
    driver : nvidia-driver-415 - third-party free recommended
    driver : nvidia-driver-396 - third-party free
    driver : nvidia-driver-390 - third-party free
    driver : nvidia-driver-410 - third-party free
    driver : xserver-xorg-video-nouveau - distro free builtin


    Version 396 would be ok for now, but Cuda 10 already needs driver version 410, so I could live with the recommendation. This article suggested to remove the old drivers and install the new ones as follows:



    sudo apt-get remove --purge nvidia-*
    sudo ubuntu-drivers autoinstall


    And it worked. I can now run Tensorflow 1.12 without it complaining about the wrong driver version.






    share|improve this answer




























      0














      I tried to install the unmet dependencies as suggested in the comment. I start with libnvidia-gl-396. That resulted in the same error message about unmet dependencies and a broken package. I tried to fix that with



      sudo apt-get install --fix-broken


      but that didn't work. I rebooted and ran software and updates again. To my surprise it listed all available versions from 390 onwards: 390, 396, 410 and 415, where it first listed just 390. Tried to install any of them but that didn't succeed. Got no message as to why.



      As I'd figured out before the following versions were available:



      $ ubuntu-drivers devices
      == /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
      modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
      vendor : NVIDIA Corporation
      model : GP102 [GeForce GTX 1080 Ti]
      driver : nvidia-driver-415 - third-party free recommended
      driver : nvidia-driver-396 - third-party free
      driver : nvidia-driver-390 - third-party free
      driver : nvidia-driver-410 - third-party free
      driver : xserver-xorg-video-nouveau - distro free builtin


      Version 396 would be ok for now, but Cuda 10 already needs driver version 410, so I could live with the recommendation. This article suggested to remove the old drivers and install the new ones as follows:



      sudo apt-get remove --purge nvidia-*
      sudo ubuntu-drivers autoinstall


      And it worked. I can now run Tensorflow 1.12 without it complaining about the wrong driver version.






      share|improve this answer


























        0












        0








        0







        I tried to install the unmet dependencies as suggested in the comment. I start with libnvidia-gl-396. That resulted in the same error message about unmet dependencies and a broken package. I tried to fix that with



        sudo apt-get install --fix-broken


        but that didn't work. I rebooted and ran software and updates again. To my surprise it listed all available versions from 390 onwards: 390, 396, 410 and 415, where it first listed just 390. Tried to install any of them but that didn't succeed. Got no message as to why.



        As I'd figured out before the following versions were available:



        $ ubuntu-drivers devices
        == /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
        modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
        vendor : NVIDIA Corporation
        model : GP102 [GeForce GTX 1080 Ti]
        driver : nvidia-driver-415 - third-party free recommended
        driver : nvidia-driver-396 - third-party free
        driver : nvidia-driver-390 - third-party free
        driver : nvidia-driver-410 - third-party free
        driver : xserver-xorg-video-nouveau - distro free builtin


        Version 396 would be ok for now, but Cuda 10 already needs driver version 410, so I could live with the recommendation. This article suggested to remove the old drivers and install the new ones as follows:



        sudo apt-get remove --purge nvidia-*
        sudo ubuntu-drivers autoinstall


        And it worked. I can now run Tensorflow 1.12 without it complaining about the wrong driver version.






        share|improve this answer













        I tried to install the unmet dependencies as suggested in the comment. I start with libnvidia-gl-396. That resulted in the same error message about unmet dependencies and a broken package. I tried to fix that with



        sudo apt-get install --fix-broken


        but that didn't work. I rebooted and ran software and updates again. To my surprise it listed all available versions from 390 onwards: 390, 396, 410 and 415, where it first listed just 390. Tried to install any of them but that didn't succeed. Got no message as to why.



        As I'd figured out before the following versions were available:



        $ ubuntu-drivers devices
        == /sys/devices/pci0000:00/0000:00:03.1/0000:08:00.0 ==
        modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
        vendor : NVIDIA Corporation
        model : GP102 [GeForce GTX 1080 Ti]
        driver : nvidia-driver-415 - third-party free recommended
        driver : nvidia-driver-396 - third-party free
        driver : nvidia-driver-390 - third-party free
        driver : nvidia-driver-410 - third-party free
        driver : xserver-xorg-video-nouveau - distro free builtin


        Version 396 would be ok for now, but Cuda 10 already needs driver version 410, so I could live with the recommendation. This article suggested to remove the old drivers and install the new ones as follows:



        sudo apt-get remove --purge nvidia-*
        sudo ubuntu-drivers autoinstall


        And it worked. I can now run Tensorflow 1.12 without it complaining about the wrong driver version.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 12 at 7:00









        ArnoldArnold

        1086




        1086






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108632%2fcannot-install-nvidia-drivers-v396-on-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅