I’m having problems with logging in on Kali Linux. After I did apt-get update & apt-get upgrade I rebooted the system. When I go to the login, I type “root” for username and my password and it logs me out immediately. I can log with a different user.
On the main screen I press Ctrl+Alt+F2, and I can log in with “root” username and password. I try dpkg --configure -a and then apt-get update and apt-get upgrade, but nothing. That happens when I remove NVidia drivers with apt-get remove --purge nvidia*, because I’m stuck on the “Oh no! Something has gone wrong.” and “A problem has occurred and the system can’t recover. Please log out and try again.” errors.
After removing the NVidia drivers, I cannot login as root. I can login with a different user, and when I type su and password for “root” I don’t have a problem. I tried chown -R root:root /root, but nothing. I tried to install dkms but it says that it is already installed.