My computer was running fine until yesterday night, but today it is stuck in a login loop.
I tried going into recovery mode from grub and reconfiguring dpkg packages, but it didn't work, tried switching from lightdm to gdm3 but this just gives me a black screen upon login, then tried reconfiguring lightdm, uninstalling and reinstalling lightdm and all of this did not work, I'm still stuck on login loop. I've tried various methods found by googling, and I also wondered if my nvidia drivers were messing something up (even though that seems strange, since I've been using the computer with those drivers installed for quite some time) so I uninstalled the current nvidia drivers and installed nvidia-current drivers (304 I think), but I'm still stuck.
What else can I try? I'm starting to think about doing a clean install, but I would prefer fixing the problem rather than having to lose everything and start with a clean slate.
Thanks for any suggestions!
EDIT: Couldn't find any error messages in either /var/log/Xorg.0.log nor /var/log/Xorg.0.log.old
EDIT2: So, after a bit of looking around, I saw that there was some problem with reading .Xauthority, so I just created a backup and a new .Xauthority file and that solved it, but still after a few seconds being logged in I get a black screen and get sent back to the login screen. Looking at the lightdm logs I find a critical error, "session_get_login1_session_id: assertion 'session != NULL' failed". Any idea on how to fix this
/var/log/Xorg.0.log
and/var/log/Xorg.0.log.old
(as root if needed). See if there's anything toward the end of the log (especially the old one) that indicates an error of some sort, and edit the relevant information into your question.