I recently installed Ubuntu 16.04 as a second OS alongside Windows 7. Installation process went smoothly and after it was done I also downloaded nVidia driver for my graphics card and installed it. Everything worked fine, yesterday I switched between Win7 and Ubuntu many times without a single problem, I've also set up screen resolution in Ubuntu to my monitor's native FullHD (which wasn't possible without nVidia driver) and everything was ok. I installed some software - KallistiOS and WineHQ. All was fine.
But today I tried to install
mono-devel package which is sometimes required by WineHQ. I couldn't install it as I kept getting some error message (something about lock). I wish I remember what it was, but I just can't. I searched the Internet to solve this problem, I messed around a little bit trying to resolve the issue and when I restarted my computer for any time today I noticed the screen resolution change in login screen - it was back to 640x480 from 1920x1080. From there it got worse, because after typing in my password and hitting Enter I was briefly shown with
fsck message saying that
/dev/sda3 is clean and after that I returned to login screen. Anytime I try to login this scheme repeats -
fsck message is shown for a brief moment, after that system returns to login screen.
After searching the web I determined that the problem probably isn't with
fsck, but that I'm stuck in a login loop. I'm stumped, because I don't know what to do to resolve this issue. I still have access to terminal by Ctrl+Alt+F1. Removing
.Xauthority with command
rm .Xauthority (as someone here in another topic suggested) didn't help.
I didn't install any other graphics driver, so I'm pretty sure this login loop doesn't have anything to do with it (despite that resolution change). Unfortunately, I cannot check what the whole problem with Mono and lock was, since I was searching the Internet on Ubuntu and not on Win7 (as I can't login on Ubuntu). I also tried editing
/etc/default/grub as written here: 12.04.3 can start only after press "resume" in rescue mode (every boot) - problem with Nvidia driver , but it didn't help, too.
EDIT: This: Ubuntu gets stuck in a login loop didn't resolve my issue.