If it’s still stuck at installing something, quit the setup, run apt install -f and re-run setup and try again.
apt install -f