GRRRR…
unable to lookup (none) via gethostbyname()
Not sure how I managed to delete localhost on my laptop but here is a quick fix to get your administrative applications back up and runing. I was getting this error in the terminal ; unable to lookup (none) via gethostbyname() , This cripled a few of my programs running under wine and access to my wifi card etc…
Reboot Ubuntu, hit escape when loading GRUB , select recovery mode ( this will log into root) , then type the following : nano /etc/hosts .. add the line below following in the editor .
127.0.0.1 localhost your-computer-name-here