I searched information in other forums about this error, and I tried to do what they say, but I have the same error
My /etc/hosts file is:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 servidor localhost.localdomain localhost