解决办法:
1.打开/etc/resolv.conf;
$sudo vim /etc/resolv.conf
2.修改nameserver后的ip地址;
加入:
nameserver 8.8.8.8 nameserver 8.8.4.4
3.重起网卡;
sudo /etc/init.d/network restart