11

I installed Kali Linux a month ago. It was good until today.

When I submit username and password the box disappears and reappears again asking about username and password. It shows no error. I just can't login.

I also tried to make new account and try login but same problem occur. I don't wanna reinstall it.

Frank
  • 111

8 Answers8

14

I saw this post on a quest for a solution to the same problem. I couldn't find an answer. What i then tried doing was this and it worked.

  1. While in the username screen press Ctrl+Alt+F1
  2. Login with root.
  3. Type sudo apt-get update
  4. Type sudo apt-get upgrade
  5. Type sudo reboot

After that the system rebooted and the login worked! I hope this works for who ever finds this post.

Adriaan
  • 241
5

This seems to happen when a lot of updates are run. It happened to me when using the 2016.2 OVA and running a full update and upgrade. Here are the steps that worked:

  1. Ctrl + Alt + F1 at the login screen
  2. dpkg --configure -a

This will finish the updates that were interrupted.

Gareth
  • 19,080
King
  • 51
  • 1
  • 1
0

If all those precious answers fail, drop in a tty using Ctrl+Alt+F3 or any other Function key and login. Now, create a directory first with mkdir -p ~/dotfiles_backup. Then, execute the following command:

find ~ -name '.*' -maxdepth 1 -type f -exec mv {} ~/_dotfiles_backup/ \;

If after this you're still unable to login, run it again but remove the -type f option. If you get Operation not permitted or Permission denied, use sudo.

This will reset most of your saved preferences. After you're able to login again, you can try to restore them one by one and see what was causing the problem.

0

For me it was because of the vnc server (tightvncserver) that was running (for some reason). I'm running Kali on a VMware ESXi host using the Embedded Host Client and was getting this problem after I enabled the vnc server by creating a script in /etc/init.d/ and using the systemctl enable command. I was able to open another virtual terminal using the instructions here. Then I used systemctl stop vncserver, then disabled it, rebooted and everything worked.

0

None of those work for me but I fixed it by just downloading another desktop

XFCE dektop:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

or

KDE:

apt-get install kali-defaults kali-root-login desktop-base kde-plasma-desktop
0

I fixed this problem in my laptop. I was trying to install Go language support and I have done mistake in setting path so I just removed last changed what I have done using (control+shift+f2) I just typed history and revoke all the last command what I have done in last time....

0

While at the login screen press Ctrl+Alt+F1 or Ctrl+Alt+F2 to open a terminal. After that type the username and password in terminal.

Now, follow the commands below:

  1. sudo apt-get update

  2. sudo apt-get upgrade

  3. dpkg --configure -a

  4. sudo apt-get install cinnamon-control-center-data

  5. gdm3 --version

  6. apt-get --reinstall install gdm3

  7. apt-get --reinstall install gnome

  8. apt-get --reinstall install gnome-shell

  9. dpkg-reconfigure gdm3

  10. reboot

Greenonline
  • 2,390
0

The solutions of updating and upgrading didn't work for me.

Before shutting down my system I had made some mistake while setting the path for java, so I just edited that file back to previous version from using tty. And since a lot of things got updated(in my case) in this process your desktop feels different so no need to worry.

Edit: press Ctrl + Alt + F1/F2 for accessing tty