Your hostname is not set properly errors


#1

You may receive this errors on Linux systems in several programs specifically on installation on service setup step.

Most common reason for this problem, if your fully qualified domain name does not include any . (dot) character, software used to setup the service thinks that your hostname is not set properly.

If following command returns a hostname with dot(s), this makes setup software happy:

$ hostname --fqdn
myserver

As you can see, it doesn’t return a dotted hostname. We can solve this problem with adding a dotted hostname in /etc/hosts file like below:

127.0.1.1    myserver.localhost  myserver

You can provide more than one hostname for ip 127.0.1.1 but the first entry must be a dotted version.After that run the command again:

$ hostname --fqdn
myserver.localhost

It probably solves your problem.Please check hostname related articles below.