This usually happens if your name server is not configured properly.
The work around is to properly set hosts on your Linux machine. Try with the following work around:
1. open “/etc/hosts” file
2. enter the following tree lines:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost.localdomain YourHostName
::1 localhost6.localdomain6 localhost6
3. reset your network settings:
service network restart
Make sure to change YourHostName with appropriate host name, your host name.
The most common means to find your host name is to open up a terminal window and enter the command: hostname