Ubuntu error: sudo: unable to resolve host ubuntu: Name or service not known
sudo vim /etc/hosts
在"127.0.0.1 localhost"后面:
添加ubuntu,
127.0.0.1 localhost ubuntu
即可。
来源:https://askubuntu.com/questions/59458/error-message-sudo-unable-to-resolve-host-none