ubuntu中unable to resolve host xxx问题的解决方法

时间:2022-05-15 04:38:57
      编辑/etc/hosts文件,在终端里输入:gksu gedit /etc/hosts 在127.0.0.1 localhost下面输入:

  127.0.1.1 zhichier-desktop(这里的“zhichier-desktop”是我的hostname,也就是从/etc /hostname文件里看到的内容,你根据你自己的实际情况作出更改。)

  至此,问题就解决了。