![Ubuntu 22.04 OS 中的以太网连接被禁用](https://linux22.com/image/951833/Ubuntu%2022.04%20OS%20%E4%B8%AD%E7%9A%84%E4%BB%A5%E5%A4%AA%E7%BD%91%E8%BF%9E%E6%8E%A5%E8%A2%AB%E7%A6%81%E7%94%A8.png)
我的 Ubuntu 22.04.2 LTS 操作系统的电脑无法检测到以太网连接,这个问题也类似于这个邮政,即使尝试了建议的答案,问题仍然没有解决。
这是我运行命令时得到的结果lshw -C network
:
*-network:1 DISABLED
description: Ethernet interface
product: Ethernet Connection (11) I219-LM
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: eno2
version: 00
serial: 74:78:27:0b:62:45
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=5.15.0-69-generic duplex=full firmware=0.4-4 latency=0 link=no multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:152 memory:c4400000-c441ffff
当我运行该命令时sudo ifconfig wlan0 up
,收到以下错误消息:
wlan0: ERROR while getting interface flags: No such device
答案1
我按照以下选定的答案进行操作邮政. 它对我有用。
编辑文件/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 NetworkManager restart
就这些。希望这对你也有用