Ubuntu18.04 没有有线网图标 可以连接wifi

进行以下测试:
  1. 运行ifconfig,只显示lo或wifi网卡
  2. 运行ifconfig -a,能显示有线网卡
  3. 运行ifconfig enp7s0 up后使用ifconfig能显示有线网卡,但是仍然没有有线网

 

解决方法:

sudo gedit /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf

 

将文件中原来的

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan

更改为

[keyfile]
unmanaged-devices=*,except:type:ethernet,except:type:wifi,except:type:wwan

 

然后运行

sudo service network-manager restart

 

posted @ 2022-05-31 09:34  WTSRUVF  阅读(350)  评论(0编辑  收藏  举报