Kali linux không thể login

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.

asked Oct 17, 2015 at 11:57

5

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.

answered Jul 28, 2016 at 19:46

AdriaanAdriaan

2112 silver badges3 bronze badges

2

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.

Kali linux không thể login

Gaff

18.3k14 gold badges56 silver badges68 bronze badges

answered Oct 31, 2016 at 3:40

KingKing

511 silver badge1 bronze badge

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.

answered Oct 31, 2016 at 4:37

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.

answered Mar 16, 2017 at 12:56

Kali linux không thể login

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

Kali linux không thể login

answered May 19, 2017 at 20:56

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....

answered Feb 3, 2019 at 9:45

Kali linux không thể login

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

Kali linux không thể login

Greenonline

2,0878 gold badges21 silver badges29 bronze badges

answered May 11, 2019 at 16:55

Kali linux không thể login

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

answered Jun 6, 2019 at 14:21

Kali linux không thể login

3