Error during installation

I installed a fresh Ubuntu 14.04 - 64bit on my rootserver.
Then I made the following commands via Putty.

apt-get update && apt-get upgrade -y
apt-get dist-upgrade -y
apt-get autoremove -y

sudo echo "" > /etc/hostname

sudo nano /etc/hosts
---- localhost.localdomain localhost
111.222.333.444 box


apt-get install git

git clone
cd mailinabox
git checkout v0.27
sudo setup/

The following error message came up …

My domain hoster is namecheap.
There I have already created a glue-record.
At custom-dns I have entered the following:

what am I doing wrong? ask for help.


Have you really got spaces here

sudo echo “”> / etc / hostname

It should be

sudo echo “”> /etc/hostname


sudo nano / etc / hosts

should be

sudo nano /etc/hosts

No idea what affect this will have but its unlikely to work.


I had to translate the text, since my english is not that good, probably the spaces have been inserted by “copy & paste”. Anyway, of course I did it without the spaces.

Your server is having problem while resolving are you sure your outbound connections are not being blocked?

The script sets the server name also it looks like either DNS is broken on your box (it tells you this via the “could not resolve x” errors)

before I start the script, the server works perfectly. I can run apt-get update, etc. but as soon as I start the script and the upper error message comes I can not make an apt-get update anymore.

// update:

I have now found that the error is in the /etc/resolv.conf.
there is the following listed:


but if I enter the following under /etc/resolvconf/resolv.config.d/head


and restart, then everything works.

How can I fix the error now?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.