Solution:
1. Press and hold the keyboard combination: one of Ctrl + Alt + F1...F6.
The following display appears
After logging in, it will be displayed as shown in the figure below
2. Modify the apt source: sudo vim /etc/apt/sources.list
Modify the apt source and elevate privileges through sudo
然后输入密码,和刚才输入的密码一样 kali
3. Then enter the sources.list file, add the following lines, and then exit and save
# 添加阿里云kali源(其他的也行):
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
4. Enter the following command to update
sudo apt update -y
5. Install xinit and xserver-xorg
sudo apt install xserver-xorg xinit -y
6. Configure the desktop
update-alternatives --config x-session-manager
7. Start the graphical interface through the startx command
startx
8. The startup is successful, as shown in the figure below