可以使用以下命令 sudo systemctl disable lightdm 之后重启即可

再次开启桌面 sudo systemctl enable lightdm

sudo systemctl start lightdm