sudo: unable to resolve host ****
解决:
修改了/etc/hostname之后,还要修改/etc/hosts

参考 http://ubuntuforums.org/showthread.php?t=799896
Yup. If you change the hostname in /etc/hostname, you must also fix up /etc/hosts so the new name resolves to 127.0.0.1. The safest way is to edit hosts and add the new name, then edit hostname, then go back to hosts to remove the old hstname.
本文详细介绍了在修改/etc/hostname文件后,为确保主机名正确解析到本地地址127.0.0.1,需要同步修改/etc/hosts文件的步骤,并提供了具体实例供参考。
139

被折叠的 条评论
为什么被折叠?



