ubuntu 20.04 可以上网,但是右上角网络图标显示问号

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
minotaurking
帖子: 4
注册时间: 2005-07-12 22:09

ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#1

帖子 minotaurking » 2021-03-28 9:13

Ubuntu 20.04网络是通的,所有上网功能都正常,但是网络图标上却是一个问号,就和无法访问互联网时一样。系统是如何判断更新这个图标的?
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#2

帖子 funicorn » 2021-03-28 10:25

代码: 全选

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.
minotaurking
帖子: 4
注册时间: 2005-07-12 22:09

Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#3

帖子 minotaurking » 2021-03-28 21:34

以上命令返回limited,但其实是可以上网的。
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#4

帖子 funicorn » 2021-03-28 22:29

代码: 全选

nmcli -p c show
nmcli -p d show
安装运行虚拟机了,开代理或vpn了?
minotaurking
帖子: 4
注册时间: 2005-07-12 22:09

Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#5

帖子 minotaurking » 2021-03-28 23:37

应该是自己犯傻了,dns设置的有问题,导致少量网站域名解析不了,可能ubuntu的网站也解析不了,所以图标显示无法访问互联网。调整dns设置后就好了。谢谢@funicorn
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: ubuntu 20.04 可以上网,但是右上角网络图标显示问号

#6

帖子 九天星 » 2021-03-29 1:42

跟windows网络图标中的问号是一个道理。
回复