Having this kind of issue I assume you have an hdinstall, so this would be a topic for "Debian apt install etc.." while this is a place for 'live-mode' questions.
Anyway I think you need to edit the '/etc/inittab' file and replace the 'default runlevel' from 5(graphic) to 3(command line).