您的位置:首页 > 其它

[ubuntu] sudo:无法解析主机问题

2014-07-02 13:10 489 查看
在/etc/hosts 里追加如下:

127.0.1.1 hostname

为什么要这么设定,参照:

http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#s-net-dns

The IP address
127.0.1.1
in the second line of this example may not be found on some other Unix-like systems. TheDebian Installer
creates this entry for a system without a permanent IP address as a workaround for some software (e.g., GNOME) as documented in thebug #719621.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: