[RESLOVED] What am I missing?

Hi all, I’m new to MiB and wanted to give it a try. I created a new vps which i logged in to and entered:

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

it gave me the error that curl was missing so i installed curl and entered

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

again and the installation started but with many errors.

What am I missing? I’m following this guide:
https://mailinabox.email/guide.html

The guide did for example not mention that I had to install curl. So im wondering what else do i need to install before running:

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

Some of the errors i get are these:

"FAILED: apt-get -y install python3 python3-dev python3-pip wget curl sudo coreutils bc haveged unattended-upgrades ntp fail2ban

Reading package lists…
Building dependency tree…
Reading state information…
Package haveged 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: Unable to locate package python3-pip
E: Package ‘haveged’ has no installation candidate
E: Unable to locate package fail2ban

FAILED: apt-get -y install nsd ldnsutils openssh-client

Reading package lists…
Building dependency tree…
Reading state information…
Package ldnsutils 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
However the following packages replace it:
libldns-dev:i386 libldns-dev

E: Unable to locate package nsd
E: Package ‘ldnsutils’ has no installation candidate

Generating DNSSEC signing keys. This may take a few minutes…
setup/dns.sh: line 74: ldns-keygen: command not found
setup/dns.sh: line 80: ldns-keygen: command not found
setup/dns.sh: line 74: ldns-keygen: command not found
setup/dns.sh: line 80: ldns-keygen: command not found
already installed: ca-certificates (20130906ubuntu2)
installing postfix postfix-pcre postgrey …

FAILED: apt-get -y install postfix postfix-pcre postgrey ca-certificates

Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package postgrey
-----------------------------------------"

and it keeps going with errors :(.

Thanks in advance

There is something wrong with the VM. I would try a different VM provider.

Strange since it’s a well known provider here in Sweden and i have multiple VMs with them. Like I mentioned cURL was not installed for example. Is there anything I need to install before running the installation?

No.

The errors are that Ubuntu packages aren’t available. That’s very bad.

Strange…
What system is installed on VPS? (cat /etc/os-release)
What repo sources is used? (cat /etc/apt/sources.list)

I found this answer while searching the forum:

From Mail-in-a-Box’s perspective, an OpenVZ box is not a clean Ubuntu 14.04 machine.

I switched from OpenVZ to VMware and i now have this:

cat /etc/os-release

NAME=“Ubuntu”
VERSION=“14.04.1 LTS, Trusty Tahr”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 14.04.1 LTS”
VERSION_ID=“14.04”
HOME_URL=“http://www.ubuntu.com/
SUPPORT_URL=“http://help.ubuntu.com/
BUG_REPORT_URL=“Bugs : Ubuntu

and

cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted

#deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://se.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://se.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://se.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty universe
deb http://se.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://se.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://se.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://se.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main

Now I managed to install without any errors but on status page i get “Something went wrong, sorry.”

I tried this: Status Checks can not work
but “Something went wrong, sorry.” when I try to view status page.

I figured out that the vps was not on a clean ubuntu server.

@dreni How did you solve the problem? I’m having the same problems at the Swedish provider GleSYS.

Thanks

Hi Jonas, I’m also using GleSYS :), you have to choose VMWare and then None as Template when you create a server. Once created you can choose ubuntu-14.04.2-server-amd64.iso as iso on CD/DVD tab and then turn on the server. Connect to it using VNC and go ahead with the installation. This will create a full installation of ubuntu, with cURL and evrything needed. I have manage to make the installation without any erros and tomorrow I will look at the reserve dns and other settings needed to setup the domain to get the MiB working properly.

Hi guys,

Im with GleSYS tech and i have done some research on this issue.

TL;DR we have updated our template, run apt-get update && apt-get install curl before running the install script and it should work.

First issue: Curl is not installed in any template by default, we try to keep as clean templates as possible.

Second issue: The universe repo was not activated on the template, a colleague just updated the template. That was the reason why python could not be installed. One still have to do a apt-get update to get the universe packages, but since you always should be running apt-get update && apt-get upgrade when createing a VPS that should not be a problem.

Just add this to /etc/apt/sources.list and run apt-get update

deb http://archive.ubuntu.com/ubuntu trusty universe

The last issue seems to be related to a bug in the nsd .deb package, more info in this thread: https://bugs.launchpad.net/ubuntu/+source/nsd/+bug/1311886

I resolved that by manually running:

adduser --quiet --system --group --no-create-home --home /var/lib/nsd nsd

after that the package installed ok, on the updated template this problem is fixed and i could successfully install mail-in-a-box.