摘录一段其他博主的方法:
$ systemctl get-default
graphical.target
$ systemctl status graphical.target
● graphical.target - Graphical Interface
Loaded: loaded (/usr/lib/systemd/system/graphical.target; indirect; vendor preset: disabled)
Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
Docs: man:systemd.special(7)
Aug 23 11:55:29 <hostname> systemd[1]: Reached target Graphical Interface.
$ systemctl status multi-user.target
● multi-user.target - Multi-User System
Loaded: loaded (/usr/lib/systemd/system/multi-user.target; static; vendor preset: disabled)
Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
Docs: man:systemd.special(7)
Aug 23 11:55:29 <hostname> systemd[1]: Reached target Multi-User System.
Please try if these commands solve the problem :
sudo systemctl enable graphical.target
sudo systemctl enable multi-user.target
sudo systemctl set-default graphical.target
sudo reboot。