Ubuntu 17.10 stuck in login loop after installing CUDA-9 and nvidia driver 390

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I have Ubuntu-17.10. I was trying to install tensorflow-gpu and for that I needed CUDA-9. While installing CUDA-9 my graphics driver updated to nvidia-390.



Now when I restarted my PC. I'm stuck in a log in screen loop. I have tried editing the linux line nvidia.modeset = 0, nomodeset, nouveau.modeset = 0, all together. Nothing works.



Now one potential solution is to go back to the previous driver. For that, I enter TTY screen and enter my username, password. Now, this happens on TTY:



enter image description here



enter image description here



It goes back to the first login TTY screen in about 15 secs.



edit1:
Found a way to purge all the Nvidia drivers using ubuntu recovery mode. But still, the same problem continues.










share|improve this question



























    up vote
    1
    down vote

    favorite












    I have Ubuntu-17.10. I was trying to install tensorflow-gpu and for that I needed CUDA-9. While installing CUDA-9 my graphics driver updated to nvidia-390.



    Now when I restarted my PC. I'm stuck in a log in screen loop. I have tried editing the linux line nvidia.modeset = 0, nomodeset, nouveau.modeset = 0, all together. Nothing works.



    Now one potential solution is to go back to the previous driver. For that, I enter TTY screen and enter my username, password. Now, this happens on TTY:



    enter image description here



    enter image description here



    It goes back to the first login TTY screen in about 15 secs.



    edit1:
    Found a way to purge all the Nvidia drivers using ubuntu recovery mode. But still, the same problem continues.










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have Ubuntu-17.10. I was trying to install tensorflow-gpu and for that I needed CUDA-9. While installing CUDA-9 my graphics driver updated to nvidia-390.



      Now when I restarted my PC. I'm stuck in a log in screen loop. I have tried editing the linux line nvidia.modeset = 0, nomodeset, nouveau.modeset = 0, all together. Nothing works.



      Now one potential solution is to go back to the previous driver. For that, I enter TTY screen and enter my username, password. Now, this happens on TTY:



      enter image description here



      enter image description here



      It goes back to the first login TTY screen in about 15 secs.



      edit1:
      Found a way to purge all the Nvidia drivers using ubuntu recovery mode. But still, the same problem continues.










      share|improve this question















      I have Ubuntu-17.10. I was trying to install tensorflow-gpu and for that I needed CUDA-9. While installing CUDA-9 my graphics driver updated to nvidia-390.



      Now when I restarted my PC. I'm stuck in a log in screen loop. I have tried editing the linux line nvidia.modeset = 0, nomodeset, nouveau.modeset = 0, all together. Nothing works.



      Now one potential solution is to go back to the previous driver. For that, I enter TTY screen and enter my username, password. Now, this happens on TTY:



      enter image description here



      enter image description here



      It goes back to the first login TTY screen in about 15 secs.



      edit1:
      Found a way to purge all the Nvidia drivers using ubuntu recovery mode. But still, the same problem continues.







      drivers nvidia 17.10 cuda






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 11 at 13:13

























      asked Mar 11 at 8:25









      Samar Yadav

      86




      86




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          It looks like you added something to your .bashrc or .profile during installation of either cuda or cudnn and probably made a mistake while doing so. If you boot into recovery mode you should be able to login as root, navigate to your user's home directory and investigate those files to look for errors.



          If you do not find the error immediately, just move the files out of the way by renaming them. This way you should at least be able to login again.



          If that doesn't help, try the same with the global shell configuration files in /etc/bash.bashrc, /etc/profile and /etc/profile.d/*






          share|improve this answer






















          • It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
            – Samar Yadav
            Mar 12 at 11:41










          • Please try checking again the files from my edited answer above.
            – Sebastian Stark
            Mar 12 at 13:25










          • That worked. You are a genius man. Thank you
            – Samar Yadav
            Mar 14 at 3:33










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1013824%2fubuntu-17-10-stuck-in-login-loop-after-installing-cuda-9-and-nvidia-driver-390%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          It looks like you added something to your .bashrc or .profile during installation of either cuda or cudnn and probably made a mistake while doing so. If you boot into recovery mode you should be able to login as root, navigate to your user's home directory and investigate those files to look for errors.



          If you do not find the error immediately, just move the files out of the way by renaming them. This way you should at least be able to login again.



          If that doesn't help, try the same with the global shell configuration files in /etc/bash.bashrc, /etc/profile and /etc/profile.d/*






          share|improve this answer






















          • It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
            – Samar Yadav
            Mar 12 at 11:41










          • Please try checking again the files from my edited answer above.
            – Sebastian Stark
            Mar 12 at 13:25










          • That worked. You are a genius man. Thank you
            – Samar Yadav
            Mar 14 at 3:33














          up vote
          2
          down vote



          accepted










          It looks like you added something to your .bashrc or .profile during installation of either cuda or cudnn and probably made a mistake while doing so. If you boot into recovery mode you should be able to login as root, navigate to your user's home directory and investigate those files to look for errors.



          If you do not find the error immediately, just move the files out of the way by renaming them. This way you should at least be able to login again.



          If that doesn't help, try the same with the global shell configuration files in /etc/bash.bashrc, /etc/profile and /etc/profile.d/*






          share|improve this answer






















          • It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
            – Samar Yadav
            Mar 12 at 11:41










          • Please try checking again the files from my edited answer above.
            – Sebastian Stark
            Mar 12 at 13:25










          • That worked. You are a genius man. Thank you
            – Samar Yadav
            Mar 14 at 3:33












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          It looks like you added something to your .bashrc or .profile during installation of either cuda or cudnn and probably made a mistake while doing so. If you boot into recovery mode you should be able to login as root, navigate to your user's home directory and investigate those files to look for errors.



          If you do not find the error immediately, just move the files out of the way by renaming them. This way you should at least be able to login again.



          If that doesn't help, try the same with the global shell configuration files in /etc/bash.bashrc, /etc/profile and /etc/profile.d/*






          share|improve this answer














          It looks like you added something to your .bashrc or .profile during installation of either cuda or cudnn and probably made a mistake while doing so. If you boot into recovery mode you should be able to login as root, navigate to your user's home directory and investigate those files to look for errors.



          If you do not find the error immediately, just move the files out of the way by renaming them. This way you should at least be able to login again.



          If that doesn't help, try the same with the global shell configuration files in /etc/bash.bashrc, /etc/profile and /etc/profile.d/*







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 12 at 13:24

























          answered Mar 11 at 21:52









          Sebastian Stark

          4,723938




          4,723938











          • It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
            – Samar Yadav
            Mar 12 at 11:41










          • Please try checking again the files from my edited answer above.
            – Sebastian Stark
            Mar 12 at 13:25










          • That worked. You are a genius man. Thank you
            – Samar Yadav
            Mar 14 at 3:33
















          • It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
            – Samar Yadav
            Mar 12 at 11:41










          • Please try checking again the files from my edited answer above.
            – Sebastian Stark
            Mar 12 at 13:25










          • That worked. You are a genius man. Thank you
            – Samar Yadav
            Mar 14 at 3:33















          It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
          – Samar Yadav
          Mar 12 at 11:41




          It didn't work. Nothing changed actually. Moments like these make me hate Ubuntu.
          – Samar Yadav
          Mar 12 at 11:41












          Please try checking again the files from my edited answer above.
          – Sebastian Stark
          Mar 12 at 13:25




          Please try checking again the files from my edited answer above.
          – Sebastian Stark
          Mar 12 at 13:25












          That worked. You are a genius man. Thank you
          – Samar Yadav
          Mar 14 at 3:33




          That worked. You are a genius man. Thank you
          – Samar Yadav
          Mar 14 at 3:33

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013824%2fubuntu-17-10-stuck-in-login-loop-after-installing-cuda-9-and-nvidia-driver-390%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

          Running the scala interactive shell from the command line

          Do not install recommended packages of dependencies