Ubuntu 18.04 stuck on booting screen

Press ctrl + alt + F2 or F3 or F4 or F5 or F6 use tty to login
or use ssh remote login

Take ownership of your home directory


sudo chown $(whoami):$(whoami) ~/

Install lightdm desktop manager


sudo apt install lightdm

sudo dpkg-reconfigure lightdm