When you run the Sudo command the Bash console (Bash on Ubuntu on Windows), the following error may occur.
To resolve the problem, run these commands in the Bash console
echo 127.0.0.1 computer_name >> /etc/hosts
That should fix the host name resolution!
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.