sudo: unable to resolve host ****

来源:互联网 发布:chm 软件 编辑:程序博客网 时间:2024/05/16 18:44

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.