Kali Linux screen stays stuck after logging in

The Kali Linux screen stays stuck after logging in, does anyone know how to solve it?

I tried to turn off the machine or add more ram to the virtual machine but nothing works.

Boot into Recovery Mode

  • Restart the virtual machine.
  • In the GRUB menu (where you select the OS), choose “Advanced Options for Kali”.
  • Select “Recovery Mode” or “Safe Mode”.

Run a Simple Fix in Recovery

In the terminal that opens, type:

Copy code

sudo apt update && sudo apt upgrade -y
sudo systemctl restart gdm3

If it works, restart the machine. If the problem persists, increase RAM or disk space in your VM settings.

Upgrading Kali is documented here, and its not done the way you say.