When the ping www.baidu.com ping nowhere, indicating a problem with dns.
Modify dns: sudo vi /etc/resolvconf/resolv.conf.d/base (This file is empty by default)
Add Content:
nameserver 8.8.8.8
There are more than one line on a DNS
To take effect: sudo resolvconf -u