You’re trying to run interactive commands in a non-interactive shell. The Command Shell in Webmin (and the popup shell in Authentic Theme) is not interactive. You cannot run anything that needs you to answers questions in it. You can’t run vim, emacs, etc.
If you want to use apt-get
you need to include the -y
flag to choose yes.
Or, just use a real shell, which is the better choice for anything complicated.