服务只启用了NetworkManager和wpa_supplicant,总是提示网络连接激活失败,这是日志:
12月 09 17:11:30 arch-usb-xxy NetworkManager[4263]: <info> [1702113090.6479] device (wlp1s0): supplicant interface state: scanning -> authenticating
12月 09 17:11:30 arch-usb-xxy NetworkManager[4263]: <info> [1702113090.6479] device (p2p-dev-wlp1s0): supplicant management interface state: scanning -> authenticating
12月 09 17:11:30 arch-usb-xxy NetworkManager[4263]: <info> [1702113090.6846] device (wlp1s0): supplicant interface state: authenticating -> disconnected
12月 09 17:11:30 arch-usb-xxy NetworkManager[4263]: <info> [1702113090.6846] device (p2p-dev-wlp1s0): supplicant management interface state: authenticating -> disconnected
12月 09 17:11:40 arch-usb-xxy NetworkManager[4263]: <info> [1702113100.6858] device (wlp1s0): supplicant interface state: disconnected -> scanning
12月 09 17:11:40 arch-usb-xxy NetworkManager[4263]: <info> [1702113100.6859] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> scanning
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <warn> [1702113105.6755] device (wlp1s0): Activation: (wifi) association took too long, failing activation
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.6756] device (wlp1s0): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.6763] manager: NetworkManager state is now DISCONNECTED
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.6974] device (wlp1s0): set-hw-addr: set MAC address to C2:5E:EF:6E:E5:C6 (scanning)
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <warn> [1702113105.7028] device (wlp1s0): Activation: failed for connection '洋聪编程'
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.7033] device (wlp1s0): supplicant interface state: scanning -> interface_disabled
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.7033] device (p2p-dev-wlp1s0): supplicant management interface state: scanning -> interface_disabled
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.7043] device (wlp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.7343] device (wlp1s0): supplicant interface state: interface_disabled -> inactive
12月 09 17:11:45 arch-usb-xxy NetworkManager[4263]: <info> [1702113105.7344] device (p2p-dev-wlp1s0): supplicant management interface state: interface_disabled -> inactive
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6252] policy: auto-activating connection '洋聪编程' (bb9ed403-2d96-4fff-8121-3aaaa224aba0)
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6258] device (wlp1s0): Activation: starting connection '洋聪编程' (bb9ed403-2d96-4fff-8121-3aaaa224aba0)
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6261] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6263] manager: NetworkManager state is now CONNECTING
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6632] device (wlp1s0): set-hw-addr: reset MAC address to 10:63:C8:B9:A3:D5 (preserve)
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6685] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6689] device (wlp1s0): Activation: (wifi) access point '洋聪编程' has security, but secrets are required.
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6689] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6691] sup-iface[be1bdc478c6d6f87,2,wlp1s0]: wps: type pbc start...
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6697] device (wlp1s0): supplicant interface state: inactive -> interface_disabled
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6697] device (p2p-dev-wlp1s0): supplicant management interface state: inactive -> interface_disabled
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6712] device (wlp1s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6716] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6720] device (wlp1s0): Activation: (wifi) connection '洋聪编程' has security, and secrets exist. No new secrets needed.
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6721] Config: added 'ssid' value '洋聪编程'
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6721] Config: added 'scan_ssid' value '1'
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6722] Config: added 'bgscan' value 'simple:30:-65:300'
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6722] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6722] Config: added 'psk' value '<hidden>'
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6810] device (wlp1s0): supplicant interface state: interface_disabled -> inactive
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.6810] device (p2p-dev-wlp1s0): supplicant management interface state: interface_disabled -> inactive
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.7361] device (wlp1s0): supplicant interface state: inactive -> authenticating
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.7362] device (p2p-dev-wlp1s0): supplicant management interface state: inactive -> authenticating
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.7845] device (wlp1s0): supplicant interface state: authenticating -> disconnected
12月 09 17:11:50 arch-usb-xxy NetworkManager[4263]: <info> [1702113110.7845] device (p2p-dev-wlp1s0): supplicant management interface state: authenticating -> disconnected
服务列表就这些:
❯ sudo systemctl list-unit-files --state=enabled
UNIT FILE STATE PRESET
gdm.service enabled disabled
getty@.service enabled enabled
NetworkManager-dispatcher.service enabled disabled
NetworkManager-wait-online.service enabled disabled
NetworkManager.service enabled disabled
systemd-timesyncd.service enabled enabled
wpa_supplicant.service enabled disabled
remote-fs.target enabled enabled
8 unit files listed.
运行ip a后的返回:
❯ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether ca:79:64:8c:7d:bb brd ff:ff:ff:ff:ff:ff permaddr 10:63:c8:b9:a3:d5
离线