I've tried other options with newer version of Ubuntu (Ubuntu 18.04.1 LTS) and they didn't work. What did the trick for me was the following command:
systemctl set-default multi-user.target
Reboot and it will show only the console.
You can revert it running:
systemctl set-default graphical.target
And reboot again.