38

I was looking for a way to switch to gdm3 from lightdm, when I found this answer. So I tried to apply it, and entered sudo dpkg-reconfigure gdm3, then a selection screen appeared with 2 options: gdm3 and lightdm. It was the same screen that appeared during the installation of GNOME (using sudo apt install ubuntu-gnome-desktop && gnome-shell). I chose gdm3 then pressed Enter, then I got this error:

gdm.service is not active, cannot reload.
invoke-rc.d: initscript gdm3, action "reload" failed.

Any ideas?

UPDATE

It turns out that it just required a reboot to work. But I still want to know the meaning of that error I got. Does anyone have any explanation?

Tooniis
  • 1,572

5 Answers5

45

re: sudo dpkg-reconfigure gdm3 error message.

Just reboot and you should be running gdm3.

The error that you're receiving just means that gdm3 wasn't already running, so it couldn't reload it.

heynnema
  • 70,711
22

Use this sudo dpkg-reconfigure lightdm in place of sudo dpkg-reconfigure gdm3 this and then choose gdm3.

Kulfy
  • 17,696
Vardaan Shukla
  • 321
  • 2
  • 5
  • 1
    Can you please explain how would that make any difference? When either of them is used, options are shown to switch default DM. – Kulfy Jun 24 '19 at 19:14
  • 2
    But there is something different between both of them as I tried it work, When I work on lightdm I use dpkg-reconfigure lightdm and on gdm use gdm in place of lightdm and it works without any error – Vardaan Shukla Jul 03 '19 at 08:38
  • 3
    I agree, you should specify the one you are using at the moment. Don't know why but it's always worked for me. – Organic Marble Mar 12 '20 at 23:32
  • This should be the accepted answer! – Arpit Anand Sep 11 '21 at 04:34
3

Works for my WSL2 Ubuntu Desktop install - thanks:-

sudo systemctl start gdm3.service    
sudo dpkg-reconfigure gdm3
wizball
  • 109
  • 4
1

I actually found a hack! You just need to type this in terminal:

sudo apt-get install lightdm

Then you will get the option to choose your display manager where you can choose GDM instead of LightDM.

Worked for me, hope it works for you too.

Eliah Kagan
  • 117,780
1
sudo systemctl start gdm3.service    
sudo dpkg-reconfigure gdm3

So manually start gdm3, then reconfigure it and it stays working, even after a reboot.

(I know, weird, I'll update the answer if I work out what causes this)

Tim Bray
  • 239