This question already has an answer here:

I'm stuck in a login loop on my first account. I can, however, log in with the guest account and with a new account I created on terminal.

This is the log errors, please help me understand what is causing the sigterm.

enter image description here

marked as duplicate by Eric Carvalho, Yaron, Zanna, Charles Green, Kevin Bowen Sep 4 '17 at 20:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Then some configuration at your first account is faulty. To begin with, try to delete the files ~/.xinitrc, ~/.xinputrc, ~/.Xauthority, ~/.ICEauthority if they exist and reboot (those which are needed will be recreated on reboot). – Thanos Apostolou Jun 19 '16 at 12:13
  • it does not work, same loop – nizarius Jun 20 '16 at 12:36
  • Restart lightdm using; dpkg-reconfigure lightdm; sudo service lightdm restart – Rahul Nov 21 '16 at 19:03

Since you don't know exactly where the problem is, create a folder at your desktop (or documents) and move there all hidden files and folders from your home folder (every single one to be sure, even the ~/.local folder) and then reboot (those which are need will be recreated on reboot with default configurations, so if you need for example the chromium bookmarks and configuration just move back the ~/.config/chromium folder or the ~/.mozilla folder for firefox etc.). If everything works and you don't need to restore anything delete the folder you created after.


I had the same problem some time ago, for me it helped to login via a terminal and execute

$ sudo chown ~/.Xauthority

See also the answer this question on AskUbuntu:

The .Xauthority (not .xAuthority) file can be found in each user home directory and is used to store credentials in cookies used by xauth for authentication of X sessions.


So, if you are not the owner of this file you can't login since you can't store your credentials there.

Hope I could help.

  • @nizarius Hey, I'm glad I could help you :). You could mark the answer as accepted (by clicking on the tick at the left side of the question), if you want, so other people visiting the question later know at first sight the answer worked for you. – TuringTux Nov 21 '16 at 17:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.