分页: 1 / 1

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

发表于 : 2021-03-28 9:13
minotaurking
Ubuntu 20.04网络是通的,所有上网功能都正常,但是网络图标上却是一个问号,就和无法访问互联网时一样。系统是如何判断更新这个图标的?

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

发表于 : 2021-03-28 10:25
funicorn

代码: 全选

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.

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

发表于 : 2021-03-28 21:34
minotaurking
以上命令返回limited,但其实是可以上网的。

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

发表于 : 2021-03-28 22:29
funicorn

代码: 全选

nmcli -p c show
nmcli -p d show
安装运行虚拟机了,开代理或vpn了?

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

发表于 : 2021-03-28 23:37
minotaurking
应该是自己犯傻了,dns设置的有问题,导致少量网站域名解析不了,可能ubuntu的网站也解析不了,所以图标显示无法访问互联网。调整dns设置后就好了。谢谢@funicorn

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

发表于 : 2021-03-29 1:42
九天星
跟windows网络图标中的问号是一个道理。