ubuntu 20.04 可以上网,但是右上角网络图标显示问号
-
- 帖子: 4
- 注册时间: 2005-07-12 22:09
ubuntu 20.04 可以上网,但是右上角网络图标显示问号
Ubuntu 20.04网络是通的,所有上网功能都正常,但是网络图标上却是一个问号,就和无法访问互联网时一样。系统是如何判断更新这个图标的?
-
- 帖子: 1318
- 注册时间: 2005-09-13 4:56
- 系统: Ubuntu Jammy Jellyfi
Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号
代码: 全选
nmcli -p n c check
connectivity [check]
Get network connectivity state. The optional check argument tells
NetworkManager to re-check the connectivity, else the most recent known
connectivity state is displayed without re-checking.
Possible states are:
none
the host is not connected to any network.
portal
the host is behind a captive portal and cannot reach the full Internet.
limited
the host is connected to a network, but it has no access to the
Internet.
full
the host is connected to a network and has full access to the Internet.
unknown
the connectivity status cannot be found out.
-
- 帖子: 4
- 注册时间: 2005-07-12 22:09
Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号
以上命令返回limited,但其实是可以上网的。
-
- 帖子: 1318
- 注册时间: 2005-09-13 4:56
- 系统: Ubuntu Jammy Jellyfi
Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号
代码: 全选
nmcli -p c show
nmcli -p d show
-
- 帖子: 4
- 注册时间: 2005-07-12 22:09
Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号
应该是自己犯傻了,dns设置的有问题,导致少量网站域名解析不了,可能ubuntu的网站也解析不了,所以图标显示无法访问互联网。调整dns设置后就好了。谢谢@funicorn
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号
跟windows网络图标中的问号是一个道理。