In this tutorial we will see how to change your default display manager to GDM instead of LightDM. In first method we will see how to install gdm with the Software Centre and in second menthod we will do the same task through CLI
Switch to GDM with the Software Centre
Step 1 Open the Software Center, type “gdm” in the search box, and click on Install as shown below

Step 2 After you enter your password, you will get the configuration screen shown below. Change lightdm to gdm and click on Forward:

Step 3 Restart your computer, and you should now have the “old” GDM login screen; note that you can still select from any available session, including Ubuntu (3D), Ubuntu 2D, Gnome, Gnome Classic, etc.

Switch to GDM via the terminal
Step 1 Open a terminal with Ctrl+Alt+T if you are on the desktop and not in the recovery console.
Step 2 Type
sudo apt-get install gdm |
and then your password when prompted.
Step 3 A “Package Configuration” dialog will be displayed; click OK to proceed to the below screen. Use the arrow-keys to select gdm instead of lightdm, press Tab to move to OK, and press Enter.

Step 4 Reboot the computer (you can do this with
sudo reboot |
if in the recovery console).