Ubuntu – How to kill the x-server

gdmlightdmxserver

Every time I try to kill the x-server,

sudo service lightdm stop

so that I can install the latest Nvidia drivers, I get an error message.

stop: Unknown instance:

What am I doing wrong?

Best Answer

  1. Use ctrl+alt+F1 to switch to terminal,
  2. login
  3. run sudo service lightdm stop, lightdm and xserver should be stopped now (check with ctrl+alt+F7, which is your current xorg session, it should not show any desktop now)
  4. do your things
  5. run sudo service lightdm start to start lightdm and xorg again.

Good Luck!

Related Question