How do I correct this error with debootstrap in Ubuntu Server 12.04.3?

Solution 1:

Try

apt-get install dialog

Found it here after having the same problem. (I did debootstrap wheezy --variant=minbase)

Alternatively, you can use

export DEBIAN_FRONTEND=noninteractive

before running apt-get. This will fallback to a pure text console interface which also works in scripts or Dockerfiles.

Solution 2:

I had the same issue twice by now and it was caused by a messed up package. Running the following command in terminal should fix the problems:

apt-get update && apt-get dist-upgrade