on the debian desktop os, the lightdm.service of systemd service had installed to both graphical.target and multi-user.target by default.
if systemctl switch to multi-user.target, still into the graphical ui.
need remove the link from /etc/systemd/system/multi-user.target.wants