sudo: 无法解析主机:<主机名>

hostname配置出错

解决方法:进入目录 /etc/hosts编辑,命令 sudo gedit /etc/hosts

      在其中加入下面行:127.0.0.1  主机名

posted on 2014-03-03 20:29  qmzp  阅读(3142)  评论(0编辑  收藏  举报

导航