Installation stuck on "Removing nginx (if installed) before LAMP installation."

Virtualmin installation gets stuck when it reaches “Removing nginx (if installed) before LAMP installation”. The blue bar keeps moving, but it has been like this for over an hour.
I have followed installation instructions from documentation:
wget http://software.virtualmin.com/gpl/scripts/install.sh then sudo /bin/sh install.sh
Clicking ctrl+c to cancel does nothing so I close SSH window then reconnect again and reboot server. Tried many tines but it gets stuck at the same step.
Here are the last 6 entries from virtualmin-install.log file. Screenshot of log file:


Specs: DigitalOcean Ubuntu server 16.04 x64

That’s not a freshly installed OS. You’ve got phpmyadmin installed, among other things. It’s strongly recommended you run the installation on a fresh OS.