I login to my ubuntu via command line and it is ok. However, via GUI it shows me a blank screen after the login. I tried many solution which did not work:
sudo dpkg --configure -a sudo apt update sudo apt upgrade -y
mv ~/.config ~/.config.old mv ~/.local ~/.local.old mv ~/.cache ~/.cache.old
sudo apt install --reinstall gdm3 ubuntu-desktop gnome-shell sudo systemctl reboot
sudo apt install --reinstall ubuntu-gnome-desktop sudo reboot
My Ubuntu is an ubuntu server 20.04 which I installed GUI on it.
I am not after trying another random solution. I prefer steps to find the rout cause before applying the solution.