Have you made the DNS changes that were suggested by the error messages?
That indicates you have a DNS problem, set-up the correct records and run the install again. Is this a new install or an upgrade?
No results returned for A lookup of localhost
DNS ERROR resolving localhost
It is suggested that the hostname be resolveable via DNS
DNS ERROR resolving MX for localhost
It is suggested that the domain name have an MX record configured in DNS