I have a problem with ubuntu. When I tried login, I was seeing a black screen and again login screen was coming. I tried some codes but they didn't work. Codes which I tried;
chown username:username .Xauthority
mv .Xauthority .Xauthority.bak
sudo chmod a+wt /tmp
sudo apt-get purge lightdm
sudo apt-get install lightdm
dpkg-reconfigure lightdm
However I creat a new account and it is working. Well, I want to use my main account but I can't work it. Can someone help me? Thanks.
Best Answer
I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:
I saw that my home folder did not have w attribute.
I added w attribute and reboot.
Click Ctrl + Alt + F1 and type in the console
Note: ~ home folder, +w add write attribute, -R recursive.
That's all.