我使用vmware并安装ubuntu 12.10作为我的客户操作系统.
并运行我的电脑,我的网络接口是无线网卡
然而,每当我尝试sudo时,我都应该等待很长时间.
和回声
并运行我的电脑,我的网络接口是无线网卡
然而,每当我尝试sudo时,我都应该等待很长时间.
和回声
sudo: unable to resolve host ServerName pocUbuntu [sudo] password for poc:
当我输入主机名
root@ServerName pocUbuntu:/home/poc# hostname ServerName pocUbuntu
还有我的主机文件
cat /etc/hosts 127.0.0.1 localhost pocUbuntu 127.0.0.1 pocUbuntu 127.0.1.1 pocUbuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
我可以在ping服务器名pocUbuntu时得到确认
root@ServerName pocUbuntu:/home/poc# ping pocUbuntu PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.030 ms 64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.026 ms
我应该怎么做 ?解决烦人的问题.
试试这个:/ etc / hosts
127.0.0.1 localhost 127.0.1.1 hostname:localdomain hostname
要么:
127.0.0.1 localhost