Hello!
Today when I opened Kali, virtual box, I got a problem with the graphical interface so I used the:
Log in to tty1
apt-get update
apt-get upgrade -y
apt-get install -f gdm3
Reboot ...