Package ‘dialog’ has no installation candidate

Hi

I have installed 18.04.1 downloaded directly from ubuntu.com and installed on my local VM lab. I then did updated ubuntu

apt update
apt upgrade

and finally

curl -s https://mailinabox.email/setup.sh | sudo bash

to install Mail-in-a-box.

But I am getting the ‘dialog’ message above and cannot seem to install python3-pip… any ideas what I can do?

Thank you
Ursus

here is the output I am getting:

Downloading Mail-in-a-Box v0.40. . .
locale: Cannot set LC_CTYPE to default locale: No such file or directory
Installing packages needed for setup…
FAILED: apt-get -y -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confnew install dialog python3 python3-pip

Reading package lists…
Building dependency tree…
Reading state information…
Package dialog is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘dialog’ has no installation candidate
E: Unable to locate package python3-pip

after much playing around I found the solution → update sources to add universal at the end:

sudo nano /etc/apt/sources.list

deb Index of /ubuntu bionic main universe

and it works !!!

PS: I am only allowed to add. 2 links → the sources has 3 lines.