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 "box.example.com" > /etc/hostname

sudo nano /etc/hosts
----
127.0.0.1 localhost.localdomain localhost
111.222.333.444 box.example.com box
....
----

reboot

apt-get install git

git clone https://github.com/mail-in-a-box/mailinabox
cd mailinabox
git checkout v0.27
sudo setup/start.sh

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:

ns1.box.example.com
ns2.box.example.com

what am I doing wrong? ask for help.

greetings
Sakis

Have you really got spaces here

sudo echo “box.example.com”> / etc / hostname

It should be

sudo echo “box.example.com”> /etc/hostname

also

sudo nano / etc / hosts

should be

sudo nano /etc/hosts

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

Rob

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 ppa.launchpad.net 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:

nameserver 127.0.0.1
search cw4.me

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

nameserver 8.8.4.4

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.