1

When ever I enter my user and password the same window comes back again and again. It wants user and password back to back. I did ctrl+alt+f3 and got terminal. I did:

apt-get update
apt-get upgrade
apt-get -f install
apt-get dist-upgrade 

all separately. I tried to remove lightdm and installed it again. But it is a matter of sorrow that I could not fix that problem.The same thing happens every time. What could be the reason behind it and what is the solution for this?

  • Were you once able to login to the GUI? Is there anything eye-catching in syslog (/var/log/syslog) or the X server log? This could be a graphics problem (but it does not has to be one). – tr01 Sep 8 '17 at 11:56
  • I don't remember. :( I was running kali for 2 months this is first time when I am facing this trouble. – Shojib Sep 8 '17 at 11:57
  • Try logging in the GUI. Then head to the console and inspect the syslog using less /var/log/syslog. There should be some information about the failed login – tr01 Sep 8 '17 at 12:03
  • ~/.xsession-errors (in your user's home directory) is another good place to check for errors. Could be that it's trying to start the desktop, but its failing (and thus you get logged right back out). /var/log/Xorg.0.log is a good place to check, too. – derobert Sep 8 '17 at 12:55
  • I've run across this kind of thing before. What desktop environment are you running? And what display manager do you have installed? I was having similar issues with KDE till I installed sddm. /etc/X11/xorg.log generally includes some indication of what is going on. – Faheem Mitha Sep 8 '17 at 13:25
-1
apt-get --fix-broken install
apt-get autoremove

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.