Today I've successful update my Elementary 5.0 system to 5.1. After reboot I see brand new login screen, type my password and got login screen again. I already tried to set runlevel from 5 to 3 and then launch "startx" command with no success. Please help
Press Ctrl+Alt+F1 and login into the shell.
ls -lA | grep 'Xauth*'. you'll see the line
-rw------- 1 root root 53 Nov 29 10:19 .Xauthority
then you need to do
chown username:username .Xauthority and try logging in (you may also need to do the same for for
ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so:
drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp
Else, you need to do
sudo chmod a+wt /tmp and check again.
Now press Ctrl+Alt+F7 to reach the login screen again, and restart.