Ubuntu 20.04 无法识别特定的 Wifi 连接

Ubuntu 20.04 无法识别特定的 Wifi 连接

使用 Ubuntu(实际上是 Xubuntu,但可能没什么区别)20.04 时,我在连接新的(工作)WiFi 网络时遇到了问题。我需要强调的是,连接到大多数 Wifi 都没有问题,例如我的家庭网络没有问题,我可以进入各种咖啡馆和酒店等,连接没有问题。但这个不行。我刚开始在这里工作,我真的需要连接到他们的 WiFi。但我做不到。

我可以从我的 Android 手机毫无问题地连接到这个工作 Wifi。我的同事可以从他们的 MAC 毫无问题地连接。只有我一个人(这很尴尬)。首先,当我尝试连接时,WiFi 网络没有显示在列表中。这是第一个危险信号。为了尝试克服这个问题,我创建了一个手动条目,给它一个有效的密码并告诉它使用模式:客户端、频段:自动、频道:默认。我将安全性设置为 WPA 和 WPA2 个人版。这在中创建了一个文件/etc/NetworkManager/system-connections。它连接了但使用热点作为其模式(嗯?)这使我没有真正的网络连接。在对其进行一些编辑以使它看起来像我的家庭 wifi 并使用不同的名称后,我得到了以下信息:

[connection]
id=Sinclair House 6
uuid=4c05a113-015e-414e-84b1-f655e02e04b6
type=wifi
autoconnect=false
interface-name=wlp7s0
permissions=

[wifi]
hidden=false
mac-address-blacklist=
mode=client
ssid='Sinclair House'

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=REDACTED

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

[proxy]

但这也最终以热点模式连接。它仍然处于隐藏状态。我不完全确定编辑文件就是我改变连接所要做的全部工作,所以我很想听听这方面的建议。以前有一个“忘记”选项,但已停用。现在它会非常有用。我尝试将模式从客户端更改为基础设施,但行为没有改变。我认为真正的问题是为什么我的 Ubuntu 首先看不到 Wifi。我无法访问调制解调器,无法摆弄设置等,但显然我可以更改自己的机器。

谢谢你的帮助。

编辑:根据要求添加日志输出(提取)sudo journalctl -b 0 -u NetworkManager

Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1879] manager: NetworkManager state is now CONNECTING
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1889] device (wlp7s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1892] device (wlp7s0): Activation: (wifi) access point 'Sinclair House 3' has security, but secrets are required.
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1892] device (wlp7s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1923] device (wlp7s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1930] device (wlp7s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1935] device (wlp7s0): Activation: (wifi) connection 'Sinclair House 3' has security, and secrets exist.  No new secrets needed.
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1939] Config: added 'ssid' value 'Sinclair House'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1940] Config: added 'mode' value '1'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1942] Config: added 'frequency' value '2412'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1944] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1945] Config: added 'psk' value '<hidden>'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1946] Config: added 'proto' value 'RSN'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1947] Config: added 'pairwise' value 'CCMP'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.1947] Config: added 'group' value 'CCMP'
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.2118] device (wlp7s0): supplicant interface state: disconnected -> associating
Apr 12 09:45:31 benedict NetworkManager[1065]: <info>  [1649713531.2118] device (p2p-dev-wlp7s0): supplicant management interface state: disconnected -> associating
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.2600] device (wlp7s0): supplicant interface state: associating -> completed
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.2601] device (wlp7s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "Sinclair House"
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.2601] device (p2p-dev-wlp7s0): supplicant management interface state: associating -> completed
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.2654] device (wlp7s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3056] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlp7s0 --protocol tcp --destination-port 53 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3080] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlp7s0 --protocol udp --destination-port 53 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3101] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlp7s0 --protocol tcp --destination-port 67 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3122] Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlp7s0 --protocol udp --destination-port 67 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3151] Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface wlp7s0 --jump REJECT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3177] Executing: /usr/sbin/iptables --table filter --insert FORWARD --out-interface wlp7s0 --jump REJECT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3197] Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface wlp7s0 --out-interface wlp7s0 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3223] Executing: /usr/sbin/iptables --table filter --insert FORWARD --source 10.42.0.0/255.255.255.0 --in-interface wlp7s0 --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3251] Executing: /usr/sbin/iptables --table filter --insert FORWARD --destination 10.42.0.0/255.255.255.0 --out-interface wlp7s0 --match state --state ESTABLISHED,RELATED --jump ACCEPT
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3274] Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source 10.42.0.0/255.255.255.0 ! --destination 10.42.0.0/255.255.255.0 --jump MASQUERADE
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3299] dnsmasq-manager: starting dnsmasq...
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3313] device (wlp7s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:38 benedict dnsmasq[43038]: started, version 2.80 cachesize 150
Apr 12 09:45:38 benedict dnsmasq[43038]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
Apr 12 09:45:38 benedict dnsmasq[43038]: chown of PID file /run/nm-dnsmasq-wlp7s0.pid failed: Operation not permitted
Apr 12 09:45:38 benedict dnsmasq-dhcp[43038]: DHCP, IP range 10.42.0.10 -- 10.42.0.254, lease time 1h
Apr 12 09:45:38 benedict dnsmasq[43038]: reading /etc/resolv.conf
Apr 12 09:45:38 benedict dnsmasq[43038]: using nameserver 127.0.0.53#53
Apr 12 09:45:38 benedict dnsmasq[43038]: cleared cache
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3463] device (wlp7s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3467] device (wlp7s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Apr 12 09:45:38 benedict NetworkManager[1065]: <info>  [1649713538.3471] manager: NetworkManager state is now CONNECTED_LOCAL

这其中对我来说最可疑的是这一行:

Apr 12 09:45:38 benedict dnsmasq[43038]: chown of PID file /run/nm-dnsmasq-wlp7s0.pid failed: Operation not permitted

(本尼迪克特是我的计算机名)我将其与通过手机热点连接时的日志进行了比较,发现有很大差异,但除了这个之外,我没有在上面看到任何实际错误。我没有看到任何明确将其切换到热点的内容,但这就是它最终的结果。

相关内容