I had the same problem on Pop_OS! (based on Ubuntu), and turns out dialog is a required packaged to run this installer hahaha the messages should be clearer…
You can solve this by running sudo apt install dialog on Terminal, and then retry the installation.