可打开命令行输入ping www.baidu.com判断是否有网络
这时候就表明网络已连接
还有一种情况就是弹出:unbuntu Temporary failure in name resolution,此时说明DNS未配备
有一个可能的原因就是系统域名解析服务没有开启。systemctl status systemd-resolved.service,查看其状态是否是active。然后执行systemctl restart systemd-resolved.service重启该服务,并执行systemctl enable systemd-resolved.service将其加入开机自启项。尝试一下看看能不能解决