Linux – Login loop in Kali Linux after updating/upgrading

gdmkali-linuxlinuxvideoxorg

I've updated/upgraded my Kali Linux and now I'm stuck in a login loop.
I've tried everything in console (Ctrl+Alt+F2):

dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo reboot

Then also tried

sudo apt-get update
sudo apt-get upgrade
dpkg --configure -a
sudo apt-get install cinnamon-control-center-data
gdm3 --version
apt-get --reinstall install gdm3
apt-get --reinstall install gnome
apt-get --reinstall install gnome-shell
dpkg-reconfigure gdm3
reboot

Also tried installing lightdm but the problem persists

I empited /var/log and tried again, and then saw the file Xorg.0.log was generated, but cannot get which is the problem. I guess maybe something related to video…

/var/log/Xorg.0.log

/root/.xsession-errors

Best Answer

Hi there I have been having similar problems as well, but I was able to solve it by creating a new user and specifying a home directory using

sudo useradd -m username 

sudo passwd < enter your password for the account >

Finally I used

startx 

(assuming that you installed x-window-sytem)

Voila I ended up in the graphical interface instead of typing in my credentials and ending back at the login screen.

P.S.: I was initially setting up my Kali Linux OS when I wanted to add another user from root and realized that the login GUI would keep rebooting after entering credentials for the new user account. After hours of work I was finally able to get to a GUI for the non-root account. I am not sure if this is a permanent fix or merely a onetime fix, but I will keep working on it and let you know!

Related Question