How can I stop GDM on Ubuntu 18.04 Desktop in order to install NVIDIA Driver? Unicorn Meta Zoo...

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

Multiple options vs single option UI

Is it OK if I do not take the receipt in Germany?

Will I lose my paid in full property

My admission is revoked after accepting the admission offer

What is the best way to deal with NPC-NPC combat?

How to not starve gigantic beasts

Protagonist's race is hidden - should I reveal it?

The art of proof summarizing. Are there known rules, or is it a purely common sense matter?

A strange hotel

How to avoid introduction cliches

A Paper Record is What I Hamper

Is Diceware more secure than a long passphrase?

All ASCII characters with a given bit count

What do you call the part of a novel that is not dialog?

Is there any hidden 'W' sound after 'comment' in : Comment est-elle?

Seek and ye shall find

Passing args from the bash script to the function in the script

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

What *exactly* is electrical current, voltage, and resistance?

Additive group of local rings

Justification for leaving new position after a short time

Rolling Stones Sway guitar solo chord function

Is Electric Central Heating worth it if using Solar Panels?



How can I stop GDM on Ubuntu 18.04 Desktop in order to install NVIDIA Driver?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraX-server is corrupted if I use NVidia .run driver filesHow can I install Nvidia driver 96.43.20? I still can not install Nvidia driver on Ubuntu 16.04Ubuntu GNOME. GDM doesn't work after installing nvidia driversCannot install Nvidia driver for Quadro 1700 on Ubuntu 16.04Is Ubuntu 18.04 LTS support Nvidia Graphics Driver 390.48?Failed to install Nvidia drivers390.48 for ubuntu 16.04Nvidia driver installs but does not load on ubuntu 18.04Cannot install nvidia graphics driver 390 on Ubuntu 18.04Cannot install Nvidia Driver on Ubunutu 18.04Fail to install Nvidia driver in Linux





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







12















In the case of Ubuntu 16.04. I can download the NVIDIA driver run file and then ctrl+alt+F1 and then do the below



sudo service lightdm stop
sudo ./NVIDIA-Linux-x86_64-390.48.run


I follow on screen instructions to install and reboot and everything works.



Now I am trying to do the same thing on Ubuntu 18.04. I read that Ubuntu 18.04 switched to gdm so I tried



sudo service gdm stop
sudo gdm stop


None of them worked, after some searching I realized it could be gdm3 instead but I tried



sudo service gdm3 stop
sudo gdm3 stop


Still none of them worked, and of course sudo service lightdm stop doesn't work. When I tried to install the driver it kept telling me the x-server is still on so can't start the installation process.



What is the right way to stop gdm in Ubuntu 18.04?










share|improve this question































    12















    In the case of Ubuntu 16.04. I can download the NVIDIA driver run file and then ctrl+alt+F1 and then do the below



    sudo service lightdm stop
    sudo ./NVIDIA-Linux-x86_64-390.48.run


    I follow on screen instructions to install and reboot and everything works.



    Now I am trying to do the same thing on Ubuntu 18.04. I read that Ubuntu 18.04 switched to gdm so I tried



    sudo service gdm stop
    sudo gdm stop


    None of them worked, after some searching I realized it could be gdm3 instead but I tried



    sudo service gdm3 stop
    sudo gdm3 stop


    Still none of them worked, and of course sudo service lightdm stop doesn't work. When I tried to install the driver it kept telling me the x-server is still on so can't start the installation process.



    What is the right way to stop gdm in Ubuntu 18.04?










    share|improve this question



























      12












      12








      12


      3






      In the case of Ubuntu 16.04. I can download the NVIDIA driver run file and then ctrl+alt+F1 and then do the below



      sudo service lightdm stop
      sudo ./NVIDIA-Linux-x86_64-390.48.run


      I follow on screen instructions to install and reboot and everything works.



      Now I am trying to do the same thing on Ubuntu 18.04. I read that Ubuntu 18.04 switched to gdm so I tried



      sudo service gdm stop
      sudo gdm stop


      None of them worked, after some searching I realized it could be gdm3 instead but I tried



      sudo service gdm3 stop
      sudo gdm3 stop


      Still none of them worked, and of course sudo service lightdm stop doesn't work. When I tried to install the driver it kept telling me the x-server is still on so can't start the installation process.



      What is the right way to stop gdm in Ubuntu 18.04?










      share|improve this question
















      In the case of Ubuntu 16.04. I can download the NVIDIA driver run file and then ctrl+alt+F1 and then do the below



      sudo service lightdm stop
      sudo ./NVIDIA-Linux-x86_64-390.48.run


      I follow on screen instructions to install and reboot and everything works.



      Now I am trying to do the same thing on Ubuntu 18.04. I read that Ubuntu 18.04 switched to gdm so I tried



      sudo service gdm stop
      sudo gdm stop


      None of them worked, after some searching I realized it could be gdm3 instead but I tried



      sudo service gdm3 stop
      sudo gdm3 stop


      Still none of them worked, and of course sudo service lightdm stop doesn't work. When I tried to install the driver it kept telling me the x-server is still on so can't start the installation process.



      What is the right way to stop gdm in Ubuntu 18.04?







      drivers nvidia lightdm gdm 18.04






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 27 '18 at 19:19









      Zanna

      51.5k13141244




      51.5k13141244










      asked Apr 27 '18 at 15:18









      user3667089user3667089

      256310




      256310






















          5 Answers
          5






          active

          oldest

          votes


















          4














          Ubuntu has been using systemd for a while now. This worked for me.



          sudo systemctl stop gdm3





          share|improve this answer
























          • It didn't work for me. I am using 18.10. Any hint on why?

            – alecive
            Feb 4 at 16:54



















          1














          Dropping to run-level 3 and then installing the driver worked for me. You can change run-level using: sudo telinit 3.






          share|improve this answer
























          • Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

            – Zanna
            Sep 27 '18 at 19:31






          • 1





            Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

            – hypercube
            Sep 28 '18 at 20:41











          • This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

            – Yvon
            Jan 23 at 4:45



















          0














          You should better install the driver using: sudo apt install nvidia-graphics-drivers-384



          Make sure that you updated your local repositories by using sudo apt-get update



          Hope it works






          share|improve this answer
























          • I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

            – user3667089
            Apr 27 '18 at 15:35











          • Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

            – tuddyftw
            Apr 27 '18 at 15:46






          • 1





            This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

            – user3667089
            Apr 28 '18 at 17:18



















          0














          If you're using Ubuntu on wayland, just try this:



          sudo killall gdm-wayland-session


          That worked for me.






          share|improve this answer































            0














            I faced a similar issue and was able to update my driver by following these steps -





            1. ctrl+alt+F3 (F1 and F2 don't work in ubuntu 18.04)

            2. killall gdm

            3. Find the id of Xorg process and kill -9 <process Id>

            4. run sudo ./NVIDIA*.run

            5. sudo systemctl start gdm3






            share|improve this answer










            New contributor




            Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              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%2f1028823%2fhow-can-i-stop-gdm-on-ubuntu-18-04-desktop-in-order-to-install-nvidia-driver%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              Ubuntu has been using systemd for a while now. This worked for me.



              sudo systemctl stop gdm3





              share|improve this answer
























              • It didn't work for me. I am using 18.10. Any hint on why?

                – alecive
                Feb 4 at 16:54
















              4














              Ubuntu has been using systemd for a while now. This worked for me.



              sudo systemctl stop gdm3





              share|improve this answer
























              • It didn't work for me. I am using 18.10. Any hint on why?

                – alecive
                Feb 4 at 16:54














              4












              4








              4







              Ubuntu has been using systemd for a while now. This worked for me.



              sudo systemctl stop gdm3





              share|improve this answer













              Ubuntu has been using systemd for a while now. This worked for me.



              sudo systemctl stop gdm3






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 13 '18 at 20:43









              user620143user620143

              412




              412













              • It didn't work for me. I am using 18.10. Any hint on why?

                – alecive
                Feb 4 at 16:54



















              • It didn't work for me. I am using 18.10. Any hint on why?

                – alecive
                Feb 4 at 16:54

















              It didn't work for me. I am using 18.10. Any hint on why?

              – alecive
              Feb 4 at 16:54





              It didn't work for me. I am using 18.10. Any hint on why?

              – alecive
              Feb 4 at 16:54













              1














              Dropping to run-level 3 and then installing the driver worked for me. You can change run-level using: sudo telinit 3.






              share|improve this answer
























              • Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

                – Zanna
                Sep 27 '18 at 19:31






              • 1





                Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

                – hypercube
                Sep 28 '18 at 20:41











              • This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

                – Yvon
                Jan 23 at 4:45
















              1














              Dropping to run-level 3 and then installing the driver worked for me. You can change run-level using: sudo telinit 3.






              share|improve this answer
























              • Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

                – Zanna
                Sep 27 '18 at 19:31






              • 1





                Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

                – hypercube
                Sep 28 '18 at 20:41











              • This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

                – Yvon
                Jan 23 at 4:45














              1












              1








              1







              Dropping to run-level 3 and then installing the driver worked for me. You can change run-level using: sudo telinit 3.






              share|improve this answer













              Dropping to run-level 3 and then installing the driver worked for me. You can change run-level using: sudo telinit 3.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 27 '18 at 18:48









              hypercubehypercube

              111




              111













              • Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

                – Zanna
                Sep 27 '18 at 19:31






              • 1





                Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

                – hypercube
                Sep 28 '18 at 20:41











              • This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

                – Yvon
                Jan 23 at 4:45



















              • Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

                – Zanna
                Sep 27 '18 at 19:31






              • 1





                Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

                – hypercube
                Sep 28 '18 at 20:41











              • This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

                – Yvon
                Jan 23 at 4:45

















              Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

              – Zanna
              Sep 27 '18 at 19:31





              Did this work for you on Ubuntu 18.04? The concept of run level is a little redundant with systemd as init. Instead one would theoretically run something like systemctl isolate multi-user.target.

              – Zanna
              Sep 27 '18 at 19:31




              1




              1





              Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

              – hypercube
              Sep 28 '18 at 20:41





              Yes, this worked for me on Ubuntu 18.04. I haven't tried the systemctl command that you mentioned.

              – hypercube
              Sep 28 '18 at 20:41













              This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

              – Yvon
              Jan 23 at 4:45





              This worked for me on Ubuntu 18.10. The systemctl command did not work. But I re-launched gdm3 with systemctl.

              – Yvon
              Jan 23 at 4:45











              0














              You should better install the driver using: sudo apt install nvidia-graphics-drivers-384



              Make sure that you updated your local repositories by using sudo apt-get update



              Hope it works






              share|improve this answer
























              • I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

                – user3667089
                Apr 27 '18 at 15:35











              • Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

                – tuddyftw
                Apr 27 '18 at 15:46






              • 1





                This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

                – user3667089
                Apr 28 '18 at 17:18
















              0














              You should better install the driver using: sudo apt install nvidia-graphics-drivers-384



              Make sure that you updated your local repositories by using sudo apt-get update



              Hope it works






              share|improve this answer
























              • I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

                – user3667089
                Apr 27 '18 at 15:35











              • Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

                – tuddyftw
                Apr 27 '18 at 15:46






              • 1





                This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

                – user3667089
                Apr 28 '18 at 17:18














              0












              0








              0







              You should better install the driver using: sudo apt install nvidia-graphics-drivers-384



              Make sure that you updated your local repositories by using sudo apt-get update



              Hope it works






              share|improve this answer













              You should better install the driver using: sudo apt install nvidia-graphics-drivers-384



              Make sure that you updated your local repositories by using sudo apt-get update



              Hope it works







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 27 '18 at 15:31









              tuddyftwtuddyftw

              172




              172













              • I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

                – user3667089
                Apr 27 '18 at 15:35











              • Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

                – tuddyftw
                Apr 27 '18 at 15:46






              • 1





                This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

                – user3667089
                Apr 28 '18 at 17:18



















              • I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

                – user3667089
                Apr 27 '18 at 15:35











              • Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

                – tuddyftw
                Apr 27 '18 at 15:46






              • 1





                This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

                – user3667089
                Apr 28 '18 at 17:18

















              I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

              – user3667089
              Apr 27 '18 at 15:35





              I had bad experiences using apt to install nvidia drivers and would rather avoid it if possible.

              – user3667089
              Apr 27 '18 at 15:35













              Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

              – tuddyftw
              Apr 27 '18 at 15:46





              Then try to kill xorg using killall xorg switch to TTY2 with CTRL + ALT + F2 and after that try to kill gdm.Hope it works

              – tuddyftw
              Apr 27 '18 at 15:46




              1




              1





              This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

              – user3667089
              Apr 28 '18 at 17:18





              This doesn't work for me either. I ended up booting into recovery mode and drop to root shell to install NVIDIA driver. Not the best way but I hope someone can come up with a better solution.

              – user3667089
              Apr 28 '18 at 17:18











              0














              If you're using Ubuntu on wayland, just try this:



              sudo killall gdm-wayland-session


              That worked for me.






              share|improve this answer




























                0














                If you're using Ubuntu on wayland, just try this:



                sudo killall gdm-wayland-session


                That worked for me.






                share|improve this answer


























                  0












                  0








                  0







                  If you're using Ubuntu on wayland, just try this:



                  sudo killall gdm-wayland-session


                  That worked for me.






                  share|improve this answer













                  If you're using Ubuntu on wayland, just try this:



                  sudo killall gdm-wayland-session


                  That worked for me.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 8 at 20:23









                  Doried Abd-AllahDoried Abd-Allah

                  1034




                  1034























                      0














                      I faced a similar issue and was able to update my driver by following these steps -





                      1. ctrl+alt+F3 (F1 and F2 don't work in ubuntu 18.04)

                      2. killall gdm

                      3. Find the id of Xorg process and kill -9 <process Id>

                      4. run sudo ./NVIDIA*.run

                      5. sudo systemctl start gdm3






                      share|improve this answer










                      New contributor




                      Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        I faced a similar issue and was able to update my driver by following these steps -





                        1. ctrl+alt+F3 (F1 and F2 don't work in ubuntu 18.04)

                        2. killall gdm

                        3. Find the id of Xorg process and kill -9 <process Id>

                        4. run sudo ./NVIDIA*.run

                        5. sudo systemctl start gdm3






                        share|improve this answer










                        New contributor




                        Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          I faced a similar issue and was able to update my driver by following these steps -





                          1. ctrl+alt+F3 (F1 and F2 don't work in ubuntu 18.04)

                          2. killall gdm

                          3. Find the id of Xorg process and kill -9 <process Id>

                          4. run sudo ./NVIDIA*.run

                          5. sudo systemctl start gdm3






                          share|improve this answer










                          New contributor




                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          I faced a similar issue and was able to update my driver by following these steps -





                          1. ctrl+alt+F3 (F1 and F2 don't work in ubuntu 18.04)

                          2. killall gdm

                          3. Find the id of Xorg process and kill -9 <process Id>

                          4. run sudo ./NVIDIA*.run

                          5. sudo systemctl start gdm3







                          share|improve this answer










                          New contributor




                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer








                          edited 5 hours ago









                          Jeff

                          896919




                          896919






                          New contributor




                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 12 hours ago









                          AnkitAnkit

                          1




                          1




                          New contributor




                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Ankit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              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%2f1028823%2fhow-can-i-stop-gdm-on-ubuntu-18-04-desktop-in-order-to-install-nvidia-driver%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

                              Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                              Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                              Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...