fix Ubuntu 18.04 cannot login in GUI

There is a problem when I login into Ubuntu in GUI, it always loop in the GUI login. 

I searched in internet, there are lots of solutions, but only below it worked.

1. press ctrl+alt+F2/3... to enter the terminate login as your problem account username.

2. ls -d ~home

drwxr-xr-x 30 root root

3. change the home folder owner

sudo chown username:username /home/{yourusername}

 

other methods you can try, but they don't work for me.

1)

systemctl stop gdm.service  
systemctl restart gdm.service  
sudo dpkg-reconfigure gdm3  
reboot

2)

 in my computer, it does not have the extensions folder

  • cd ~/.local/share/gnome-shell/
  • mv extensions extensions.bak
  • mkdir extensions

3) I aso re-installed but still failure

sudo apt-get install --reinstall gnome-session
sudo apt-get install --reinstall ubuntu-desktop

4) I aso re-installed but still failure

 sudo chmod a+wt /tmp

chown username:username .Xauthority .ICEauthority

there are not the files .Xauthority .ICEauthority

posted on 2020-03-26 10:26  荷树栋  阅读(380)  评论(0)    收藏  举报

导航