I guess I ran some command trying to install something. After that, when I tried to restart my PC, it showed
error while reading block run fsck manually
which I did. After that, it was stuck in blackscreen with blinking cursor. So I installed gdm3
after login after I pressed Ctrl+Alt+F2. Now it is stuck in a login loop.
I also installed lightdm
and checked permission of xauthority
file and /tmp
file. All are fine. Also tried creating own xauthority
but still it's in login loop.
When I run a command to check which desktop manager is installed, at the end it shows
gkr-pam unable to locate daemon control file
I also ran startx
I guess I ran
sudo add-apt-repository "*deb http://archive.canonical.com/ precise partner"
sudo apt-get update
sudo apt install adobereader-enu*
These commands after which, all problem started.