Ubuntu boots on terminal only, how do I recover the GUI desktop?

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install --reinstall ubuntu-desktop

Follow below instructions:

  1. sudo dpkg --configure -a
  2. sudo apt-get install --reinstall ubuntu-desktop
  3. restart your computer and go to desktop