Nvidia driver installs but does not load on ubuntu 18.04











up vote
11
down vote

favorite
4












Nvidia driver 384 ran well on Ubuntu 17.04 and 17.10. I switched to Ubuntu 18.04 (clean fresh install) and installed nvidia-driver-396 following this great answer



Then I installed cuda toolkit 9.2 using .run file. It failed to install with and without choosing to install nvidia driver along with it. Rebooted and tried again, then cuda was installed succesfully. But nvidia isn't running.



$ nvidia-settings
ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system


$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

$ lspci -v | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])


What I have tried so far:




  1. Uninstalled nvidia (nvidia-uninstall)
    Successful but with warning: "Some symlinks could not be removed. The I removed cuda with rm -rf /usr/local/cuda* and installed nvidia-driver-396 but still the same error


  2. Removed nvidia-396, installed 396 from nvidia's website (.run file). It started with a warning "Distribution provided pre-script failed". I proceeded and installation was successful. It also added nouveau to blacklist automatically. Still same result as 1.


  3. Uninstalled previous one, removed blacklist entry, installed nvidia-390
    Still same result


  4. Uninstalled previous one, installed it from "Additional drivers" from GUI. No change.


  5. Went to console mode. Stopped gdm. Then installed 396. No change. Installed 390 likewise. No change.


  6. Tried using xorg-edgers ppa (Yes its is said they are same as graphics-drivers ppa but I am desperate now) Unmet dependency problems. So reverted to removed everything.


  7. Uninstalled everything, went to recovery mode then installed nvidia-driver-390. No luck.


  8. I felt nvidia driver from official website made some irrevesible changes. So tried installing it again so that I can uninstall it properly from recovery mode as suggested in the great answer using --unistall option. But now it fails to install. Error message says nouveau is running despite being blacklisted. I removed the blacklist entry later



I have Intel i5 with Intel HD graphics along with Nvidia GeForce 940M. Yes nvidia-prime was installed. Dual booted with Windows 10, Secure Boot is disabled



During all these steps, once I was able to start the nvidia x server app, though the nvidia-smi gave the same error. Once there was a resolution issue when cuda ran nvidia-xconfig. I removed the xorg.conf to fix it. Right now my pc has nouveau running, no other drivers installed, no blacklisting nvidia, no xorg.conf.



Can someone help. I don't see any reason why it should not work. nvidia driver 390.12 is reported to work well with kernel 4.15 but still it is not working on mine.










share|improve this question




























    up vote
    11
    down vote

    favorite
    4












    Nvidia driver 384 ran well on Ubuntu 17.04 and 17.10. I switched to Ubuntu 18.04 (clean fresh install) and installed nvidia-driver-396 following this great answer



    Then I installed cuda toolkit 9.2 using .run file. It failed to install with and without choosing to install nvidia driver along with it. Rebooted and tried again, then cuda was installed succesfully. But nvidia isn't running.



    $ nvidia-settings
    ERROR: NVIDIA driver is not loaded


    ERROR: Unable to load info from any available system


    $ nvidia-smi
    NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

    $ lspci -v | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])


    What I have tried so far:




    1. Uninstalled nvidia (nvidia-uninstall)
      Successful but with warning: "Some symlinks could not be removed. The I removed cuda with rm -rf /usr/local/cuda* and installed nvidia-driver-396 but still the same error


    2. Removed nvidia-396, installed 396 from nvidia's website (.run file). It started with a warning "Distribution provided pre-script failed". I proceeded and installation was successful. It also added nouveau to blacklist automatically. Still same result as 1.


    3. Uninstalled previous one, removed blacklist entry, installed nvidia-390
      Still same result


    4. Uninstalled previous one, installed it from "Additional drivers" from GUI. No change.


    5. Went to console mode. Stopped gdm. Then installed 396. No change. Installed 390 likewise. No change.


    6. Tried using xorg-edgers ppa (Yes its is said they are same as graphics-drivers ppa but I am desperate now) Unmet dependency problems. So reverted to removed everything.


    7. Uninstalled everything, went to recovery mode then installed nvidia-driver-390. No luck.


    8. I felt nvidia driver from official website made some irrevesible changes. So tried installing it again so that I can uninstall it properly from recovery mode as suggested in the great answer using --unistall option. But now it fails to install. Error message says nouveau is running despite being blacklisted. I removed the blacklist entry later



    I have Intel i5 with Intel HD graphics along with Nvidia GeForce 940M. Yes nvidia-prime was installed. Dual booted with Windows 10, Secure Boot is disabled



    During all these steps, once I was able to start the nvidia x server app, though the nvidia-smi gave the same error. Once there was a resolution issue when cuda ran nvidia-xconfig. I removed the xorg.conf to fix it. Right now my pc has nouveau running, no other drivers installed, no blacklisting nvidia, no xorg.conf.



    Can someone help. I don't see any reason why it should not work. nvidia driver 390.12 is reported to work well with kernel 4.15 but still it is not working on mine.










    share|improve this question


























      up vote
      11
      down vote

      favorite
      4









      up vote
      11
      down vote

      favorite
      4






      4





      Nvidia driver 384 ran well on Ubuntu 17.04 and 17.10. I switched to Ubuntu 18.04 (clean fresh install) and installed nvidia-driver-396 following this great answer



      Then I installed cuda toolkit 9.2 using .run file. It failed to install with and without choosing to install nvidia driver along with it. Rebooted and tried again, then cuda was installed succesfully. But nvidia isn't running.



      $ nvidia-settings
      ERROR: NVIDIA driver is not loaded


      ERROR: Unable to load info from any available system


      $ nvidia-smi
      NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

      $ lspci -v | grep VGA
      00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])


      What I have tried so far:




      1. Uninstalled nvidia (nvidia-uninstall)
        Successful but with warning: "Some symlinks could not be removed. The I removed cuda with rm -rf /usr/local/cuda* and installed nvidia-driver-396 but still the same error


      2. Removed nvidia-396, installed 396 from nvidia's website (.run file). It started with a warning "Distribution provided pre-script failed". I proceeded and installation was successful. It also added nouveau to blacklist automatically. Still same result as 1.


      3. Uninstalled previous one, removed blacklist entry, installed nvidia-390
        Still same result


      4. Uninstalled previous one, installed it from "Additional drivers" from GUI. No change.


      5. Went to console mode. Stopped gdm. Then installed 396. No change. Installed 390 likewise. No change.


      6. Tried using xorg-edgers ppa (Yes its is said they are same as graphics-drivers ppa but I am desperate now) Unmet dependency problems. So reverted to removed everything.


      7. Uninstalled everything, went to recovery mode then installed nvidia-driver-390. No luck.


      8. I felt nvidia driver from official website made some irrevesible changes. So tried installing it again so that I can uninstall it properly from recovery mode as suggested in the great answer using --unistall option. But now it fails to install. Error message says nouveau is running despite being blacklisted. I removed the blacklist entry later



      I have Intel i5 with Intel HD graphics along with Nvidia GeForce 940M. Yes nvidia-prime was installed. Dual booted with Windows 10, Secure Boot is disabled



      During all these steps, once I was able to start the nvidia x server app, though the nvidia-smi gave the same error. Once there was a resolution issue when cuda ran nvidia-xconfig. I removed the xorg.conf to fix it. Right now my pc has nouveau running, no other drivers installed, no blacklisting nvidia, no xorg.conf.



      Can someone help. I don't see any reason why it should not work. nvidia driver 390.12 is reported to work well with kernel 4.15 but still it is not working on mine.










      share|improve this question















      Nvidia driver 384 ran well on Ubuntu 17.04 and 17.10. I switched to Ubuntu 18.04 (clean fresh install) and installed nvidia-driver-396 following this great answer



      Then I installed cuda toolkit 9.2 using .run file. It failed to install with and without choosing to install nvidia driver along with it. Rebooted and tried again, then cuda was installed succesfully. But nvidia isn't running.



      $ nvidia-settings
      ERROR: NVIDIA driver is not loaded


      ERROR: Unable to load info from any available system


      $ nvidia-smi
      NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

      $ lspci -v | grep VGA
      00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])


      What I have tried so far:




      1. Uninstalled nvidia (nvidia-uninstall)
        Successful but with warning: "Some symlinks could not be removed. The I removed cuda with rm -rf /usr/local/cuda* and installed nvidia-driver-396 but still the same error


      2. Removed nvidia-396, installed 396 from nvidia's website (.run file). It started with a warning "Distribution provided pre-script failed". I proceeded and installation was successful. It also added nouveau to blacklist automatically. Still same result as 1.


      3. Uninstalled previous one, removed blacklist entry, installed nvidia-390
        Still same result


      4. Uninstalled previous one, installed it from "Additional drivers" from GUI. No change.


      5. Went to console mode. Stopped gdm. Then installed 396. No change. Installed 390 likewise. No change.


      6. Tried using xorg-edgers ppa (Yes its is said they are same as graphics-drivers ppa but I am desperate now) Unmet dependency problems. So reverted to removed everything.


      7. Uninstalled everything, went to recovery mode then installed nvidia-driver-390. No luck.


      8. I felt nvidia driver from official website made some irrevesible changes. So tried installing it again so that I can uninstall it properly from recovery mode as suggested in the great answer using --unistall option. But now it fails to install. Error message says nouveau is running despite being blacklisted. I removed the blacklist entry later



      I have Intel i5 with Intel HD graphics along with Nvidia GeForce 940M. Yes nvidia-prime was installed. Dual booted with Windows 10, Secure Boot is disabled



      During all these steps, once I was able to start the nvidia x server app, though the nvidia-smi gave the same error. Once there was a resolution issue when cuda ran nvidia-xconfig. I removed the xorg.conf to fix it. Right now my pc has nouveau running, no other drivers installed, no blacklisting nvidia, no xorg.conf.



      Can someone help. I don't see any reason why it should not work. nvidia driver 390.12 is reported to work well with kernel 4.15 but still it is not working on mine.







      drivers nvidia 18.04 cuda nvidia-prime






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 26 at 8:49

























      asked May 26 at 8:33









      sziraqui

      2051413




      2051413






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Finally it installed! :D



          The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:




          1. Uninstall all nvidia related packages and remove all blacklist.

          2. sudo update-initramfs -u

          3. Reboot

          4. Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)

          5. sudo update-initramfs -u

          6. Reboot

          7. Went to recovery mode, nvidia-uninstall

          8. # update-initramfs -u

          9. Reboot

          10. Installed nvidia-driver-396 package from graphics-drivers ppa


          Everything working fine now






          share|improve this answer





















          • So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
            – Alban Dericbourg
            Aug 29 at 8:46










          • The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
            – sziraqui
            Aug 29 at 16:45











          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',
          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%2f1040515%2fnvidia-driver-installs-but-does-not-load-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








          up vote
          2
          down vote



          accepted










          Finally it installed! :D



          The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:




          1. Uninstall all nvidia related packages and remove all blacklist.

          2. sudo update-initramfs -u

          3. Reboot

          4. Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)

          5. sudo update-initramfs -u

          6. Reboot

          7. Went to recovery mode, nvidia-uninstall

          8. # update-initramfs -u

          9. Reboot

          10. Installed nvidia-driver-396 package from graphics-drivers ppa


          Everything working fine now






          share|improve this answer





















          • So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
            – Alban Dericbourg
            Aug 29 at 8:46










          • The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
            – sziraqui
            Aug 29 at 16:45















          up vote
          2
          down vote



          accepted










          Finally it installed! :D



          The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:




          1. Uninstall all nvidia related packages and remove all blacklist.

          2. sudo update-initramfs -u

          3. Reboot

          4. Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)

          5. sudo update-initramfs -u

          6. Reboot

          7. Went to recovery mode, nvidia-uninstall

          8. # update-initramfs -u

          9. Reboot

          10. Installed nvidia-driver-396 package from graphics-drivers ppa


          Everything working fine now






          share|improve this answer





















          • So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
            – Alban Dericbourg
            Aug 29 at 8:46










          • The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
            – sziraqui
            Aug 29 at 16:45













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Finally it installed! :D



          The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:




          1. Uninstall all nvidia related packages and remove all blacklist.

          2. sudo update-initramfs -u

          3. Reboot

          4. Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)

          5. sudo update-initramfs -u

          6. Reboot

          7. Went to recovery mode, nvidia-uninstall

          8. # update-initramfs -u

          9. Reboot

          10. Installed nvidia-driver-396 package from graphics-drivers ppa


          Everything working fine now






          share|improve this answer












          Finally it installed! :D



          The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:




          1. Uninstall all nvidia related packages and remove all blacklist.

          2. sudo update-initramfs -u

          3. Reboot

          4. Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)

          5. sudo update-initramfs -u

          6. Reboot

          7. Went to recovery mode, nvidia-uninstall

          8. # update-initramfs -u

          9. Reboot

          10. Installed nvidia-driver-396 package from graphics-drivers ppa


          Everything working fine now







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 12 at 18:37









          sziraqui

          2051413




          2051413












          • So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
            – Alban Dericbourg
            Aug 29 at 8:46










          • The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
            – sziraqui
            Aug 29 at 16:45


















          • So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
            – Alban Dericbourg
            Aug 29 at 8:46










          • The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
            – sziraqui
            Aug 29 at 16:45
















          So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
          – Alban Dericbourg
          Aug 29 at 8:46




          So I can understand: what was the purpose of manually installing the binary driver and removing it before installing the one from the graphics PPA?
          – Alban Dericbourg
          Aug 29 at 8:46












          The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
          – sziraqui
          Aug 29 at 16:45




          The .run file made some unknown changes to system. The uninstall script of the .run file failed to do a complete uninstall (all changes were not reverted). Uninstall script was a part of the binary so to use it again in recovery mode I had to install the binary again
          – sziraqui
          Aug 29 at 16:45


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f1040515%2fnvidia-driver-installs-but-does-not-load-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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕