Suddenly, I’m unable to login to Ubuntu. When I login. I get to this lock screen:-
This is copied from google. What I get is a faded version of this prompt.
The only thing I did was avisudo
to give root permissions to my user and anapt-get install lxde
.I was able to use LXDE and all other environments until I restarted.
Answer
Try the following steps,
press CTRL + ALT + F1
Run the command ls -lah
If you see the following line(or something very similar) in the output continue with the steps below.
-rw------- 1 root root 51 May 23 21:37 .Xauthority
run the command
chown username:username .Xauthority
press ALT + F7 and try to login to your system again.
I had a similar problem and this worked for me. Hope it helps.
For more information, see this answer
Attribution
Source : Link , Question Author : Sharad Gautam , Answer Author : Community