治标不治本的办法:每次开机后执行sudo /etc/init.d/resolvconf restart就可以ping通。
治本方法见原博:https://blog.csdn.net/WFping518/article/details/81011722