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.
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